feature/11

Big refacto, so needs to be merged ASAP

Most generators will be linked to a particular module.
This allow any child class to find its linked module.