Factor out reading a struct from the json request
Add the /judge request

It writes a basic struct into the db

Also moved to the convention of always calling serveError() from the
controller function