Move to Ruby 2.0
Refactoring out backend logic