Develop

More unit tests, refactor and optimization work.

I also noticed there was some loading of js files in index.html that get reloaded with RequireJS (opentip, jquery, jquery-ui). Commented these out. Spin and less I believe are required but not sure about modernizr so I left it uncommented for now.