messages: require.js messages

* Refactors the messages/add template to use require.js.
* Loads jQuery UI modules individually.
* Fixes the jquery timepicker addon shim.
* Moves boostrap.js back into the jquery bundle (because `ui/button` shouldn't be loaded by default anymore)

@kneczaj some of the answers for #2039 are here, I hope.