Generate rakefile as well as gemspec.
Move shared code to create new files from a template into a method.