Use class constructor in Rule.gen

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