provide api for querying recently N submitted jobs / and code recorder

can be combined with other query options: GET /job?query&recent=N&state=...&...
btw, reorder functions in qmgr.go