Added base config.inc.php
change returned messages to json format add error codes to returned data add parameters to returned data - if useful add check for empty sizes in slot requests add filename check while uploading add 403 error messages in case of wrong http method