Minor code layout improvements.
Reorganized coffee script code in separate files etc.
Fixed read-only state for some controls in guest mode.
Added support for fixing orientation of uploaded files.