Renamed 'priority' to 'jobId' and assorted minor changes

See PR842 for commentary.