Refactor ReferenceApiSpec

- Move the rspec calls into the reference-api project.
  This makes it easier to think about the CWD during the tests, and
  also will make debugging easier, since one can run the ruby specs
  without regenerating the files.