Reverted unwanted changes to htaccess (this is the master version)
Fixed static background image
Reusing file upload code from apps/files/js/files.js as suggested by cosmomill