Deadman switch support 1/2

This pull request adds support for controlling the deadman switch.  It adds support for starting, stopping and updating the heartbeat file.

Splitting up the pulls to keep the size down.