Move code generation to separate generator service

Can remove path - it defaults to the plural of the model name