Fix specs
Refactoring. Remove rest-client gem
Add requirements for jruby
Refactoring