Adding tasks with Promises
Make things more clear for upload server

- Make local tmp folder
- 'filedata' key when appending to FormData
Allow cross-domain requests for upload server
Merge remote-tracking branch 'upstream/master'