Ruby code cleanup

Gemifying ruby libraries so that they may play with Bundler nicer.
See commitlog for details.