[RFC] job: Add optional {flags} parameter.

fixes #1574
@splinterofchaos What about a test for 'su'?