Fixed JSON compatibility issue

The middleware's JSON output is currently not compatible with the format jQuery File Upload expects. Fixed it.

http://github.com/blueimp/jQuery-File-Upload/wiki/JSON-Response