Have wagtaildocs, wagtailembeds, wagtailimages and wagtailsnippets register their page editor JS components through the insert_editor_js hook, rather than hard-coding them into _editor_js.html
Move chooserUrls definitions into their respective apps
Add mechanism for apps to register their own hallo.js plugins