Javascript refactor

Part 2 of the JS refactor.

* Converts all custom CMS JavaScripts into Dough components
* Retires view-specific JavaScripts
* Updates to latest Dough, fixing consequential inconsistencies