Fix tests on Ruby 1.8

See #713.
Test against JRuby in Ruby 2.0-mode and Ruby 2.1-mode
Add support for Rubinius 2

See #713.
Test against Ruby 2.1.0

Closes #713.