Javascript performance improvements, closes #185

Uploading a bunch of media at once isn't as painful in Firefox anymore. It schedules each file to be handled half a second apart.

@jdiez17 clear to merge.