fix worker specs

* class variables were leaking into other specs
* java exit was not stubbed
* using rspec 3, fixed a few deprecation problems
Merge pull request #16 from lookout/fix_specs

fix worker specs