Removed unnecessary code.
Change forms so that they use the slow validate directive, remove the "nice forms" CSS class and corresponding divs, change name of settingsPanel directive to "panels" and reorganize the code to be a bit more modular and clean. Remove hidden heatmap stuff. Add additional comments