Moved module initialisation into plugins_loaded or theme_setup action hooks

This allows for the modules to be configured before they're initialised.