Update analysis job objects

This adds some functionality to job objects that is needed for the commands selection page. Exists now properly checks the data used for the job, and delete now works for jobs.
Because I need to loop through all the ids in analyses and it's easier to break that for loop than find a way to do it in a while loop.