Refactored some javascript, removed fineuploader due to licensing issues