Optimize uniqueByOwner job query, delete old failed jobs
Add index for JobStatus getByClassAndOwner
Merge pull request #490 from candlepin/ckozak/jobstatus_query_optimization

Optimize uniqueByOwner job query, delete old failed jobs