Added midge extension for prismatic schema
preprocessing will replace toshtogo.server.util.job-requests/normalised-job-list
Renamed Job -> JobRequest for clarity
Fixing bugs in collect-tags
Renamed some parameters to make it clear we can send arbitrary queries as well as job types around. Separated out query in request-work! and sent it through same normalisation as in get-jobs
Irritatingly large and coupled commit. Used normalise-job-tree to unify handling of new root jobs and adding dependencies to existing jobs- massively cleans up the code and fixes a bunch of bugs.  Moved agents protocol into persistence. Moved tree ids from job_tree_memberships into job_dependencies. Moved tests over to using midje-schema (prismatic schema in midge) for better error messages. Much more validation of records before entry into database, which produces far better error messages.
Cleaning up use of json and generation of string stored in DB for deterministic representations of job requests
Get job trees