Fixed indentation of builtin plugins also.
Add module events so that plugins can ask to be notified whenever a
module is loaded or unloaded. More coming soon.