upped json dependencies
update rspec dependency
removed rspec deprecation warnings

* Replaced mock(XXX) by double(:XXX)
* Replaced xxx.stub!() by xxx.stub()
* Removed a couple unused variables