Issue #2004784 by chx, effulgentsia: Move module enable/disable/uninstall implementations into ModuleHandler.