Sets up a helper function to serve sample API responses when on test/dev environment.

Originally I had tried to set up an HTTP path to serve as a dev API endpoint that returns sample responses but a limitation in Rack makes it very difficult to make HTTP calls against our own app.