Add Rails 4 as a permitted dependency.  Add Rails 4 to the test matrix.  Remove Ruby 1.8.x from test matrix because specs were failing anyway because of capybara dependency.  Add JRuby to the test matrix and neaten up the JRuby dependencies.