Modules: Hook up some of the code to use the modules in tools.

WIP, incomplete and broken atm.
For example, the Slot tag is lost when setting a module to a new one.