Refactored the REST api so that there ia now a createJSONResponder function that all of the app.get callbacks
user to create the callback they pass to getAPIResponse. This also means I've separated out getting the data
from processing the data, meaning easier testing.