Heartbeat register

This is the client side of flynn/discoverd#38

Ping @lmars @miracle2k