Update rspec to 3.x and other improvement

- Use the most recent version of the gems
- Use new expect syntax for rspec
- Use require_relative instead of require when possible
- Add pry to rake task for quick prototype/testing.
- Misc code improvement