Got it all working again as before but nicely conforms to the API specification. Cleaned up the canned responses by moving them to a separate file. Moved the response parsing logic out of the controllers into its own file.