Refactor size related checks into a single generic check

This is a refactor of both the resque down check and the delayed job backed up check so it could be reused for any generic queue or array or anything that responds to size being backed up.