COR / crossdomain code (cleanup)
More upload API flexibility
Misc fixes
Misc fixes
Misc fixes/tweaks