let RubygemsGateway just the factory for ruby classes

* reduce RubygemsGateway to a factory of ruby classes
* refactored repository repair methods into own helper class
* follow the same code pattern of ruby clases for DependencyDataImpl

this will most probably conflict with #779 and would need some final changes after the #779 got merged to round up the. so it is WIP