Extract gemspec into its own object

this uses the same pattern to integrate java and ruby and part of cleaning up RubygemsGateway and how to interact with ruby