provide api for querying recently N submitted jobs

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