json-response: Add documentation for buildSession in server.hs.