Add support for views in the jobs command

If an additional parameter is provided to the jobs command it will look
at the corresponding view instead of dumping all jobs.