Topic/gen using constructor

See https://github.com/jto/Play20/pull/6#issuecomment-35123504 and commit message. This relies on merging #1.