update to run agains jruby 1.7.2 (1.9.3p327)

* add .rvmrc to use jruby VM
* fix test expectation wrt to exception types
* fix deprecated rake classes in Rakefile