Add option to worker to control heartbeat interval.

Currently the worker heartbeat defaults to 2 seconds, but this can generate a large amount of traffic in environments with lots of workers.  Added an option to allow tuning it down a bit.