Made code generation more moduler

Changed groupId in the poms
Made changes in the code so that resopurces are found when using maven
Modules can now import models from other modules so it won't be generated twice