Refactor to use additional classes

* Remove whitespace and newlines
* Refactor to use additional classes, WordReferenceApi and
  ResponseParser, to handle querying API and parsing response.
* Upgrade rspec and add rspec-mocks