Add Ruby 1.9.3 compatibility

This adds compatibility for JRuby 1.7.x as well.
Run CI against JRuby and 1.9.3
Merge pull request #26 from jgdavey/jruby

Add JRuby (and 1.9.3) compatability