Merge pull request #216 from eric-wu/js

Add backend for the pre-signed upload
Fixing build
Fix Travis compile errors -- one more try.