json-response: Fix variable name in server.hs.
json-response: Remove redundant parentheses.
json-response: Remove redundant imports in database.hs.
json-response: Remove redundant parentheses in server.hs.
json-response: Clean up server.hs.
json-response: Refactor encodeJSON.
json-response: Refactor server.hs.
json-response: Add documentation for buildSession in server.hs.
Merge branch 'json-response' of https://github.com/Ian-Stewart-Binks/courseography into database-error-log