Rewrite NodeController.job_stats()

It now uses a single query with a subquery to do everything, and
defaults to only considering jobs from the last 14 days.
Add Node.jobs backref