Comments for all the methods in profilemanager.js.
Comment all functions that make profile loading work at application startup therefore add some code to have an alternative of locally stored profiles. Make a doOnDocumentReady function visible so it can be commented. Fix a potential bug when loading profiles from server.