Refactor to use additional classes

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