Fixes js specs
Adds js specs for action_upload
Fixes Editor.upload so that it returns the xhr