use a DB lock to coordinate cron jobs, fixes #2557
Prune unused imports (tangent)
Use simpler form of pg_try_advisory_lock
Merge pull request #2833 from gratipay/coordinated-cron

Coordinate the running of periodic tasks in multiple web processes