Disable heartbeats if worker_name config key is not set

(and also removed some obsolete code from sevice.py)