DEVELOPER-912 Rationalize JS

* split up script.js in to relevant modules
* remove unused vendor libs
* replace moment usage with timeago (both do the same thing!)
* initialise our code on load, not on dom ready where possible
* remove large/rarely used libs from core JS
* compress inline script
Merge pull request #459 from pmuir/DEVELOPER-912

DEVELOPER-912 initial work on splitting up JS