Added the ability to activate/deactivate a module

Activate and deactivate modules and persist the status in the database