Use middleware properly (at app-level rather than response-level)
Split out response generators into controllers