Changed how Extensions and modules are handled. A module is now responsible for creating or maintaining the Extension instance.