special handling for filter:app.load
updated module deps for widget-essentials and markdown
some unused vars
plugins:loaded - using emitter class instead
optional callback for registerHook
allow core to tap into NodeBB's hook system, closes #989