wip: make upload generic and call API
wip: make upload generic and call API
Merge remote-tracking branch 'lf/master' into feature/fileupload

Conflicts:
	src/controllers/api.php
	src/controllers/upload.php
	src/service/sf.php
fix PHP formating to conform to PSR-2
basic upload functionality with server response data
Merge remote-tracking branch 'lf/master' into feature/fileupload
check for api permission. json encode in api
add test for mp3 upload allowed and mp4 upload disallowed
Move UploadResponse and sub-classes to their own files
fix up test
make allowance for upper case file extensions
Merge remote-tracking branch 'lf/master' into feature/fileupload
fix up format for PSR-2
fix migration script permissions; wip: auto load available scripts
auto list available scripts
don't display 'TEST RUN' message on control panel
upload tests now use a real audio file; rename text audioUrl to audioFileName
copy of old text model for migration
add missing parameter in API call
re-format to airbnb and PSR-2 style guidelines