Make JRuby compatible

This PR adds the `jruby-openssl` dependency when the gem is built with JRuby, ensuring it will work on the java platform. It also adds JRuby to the Travis build matrix.