Revert "Revert "Add Ruby 2.0 support, fix JRuby""

This reverts commit 41bc423fdcbf284fe755e1b6d7b73453c339af78.