Refactor

Superseeds GH-3

Things to do before merging it in:
  * [x] Fix specs
  * [x] Configure default rake task to run specs
  * [x] Update README
  * [x] Configure travis
  * [x] Try to remove warning from specs