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