Add heartbeat API

Summary: This will allow us to adjust the monitor behavior within changes-client to ensure that we can expire builds server-side when they stop checking in.

Reviewers: vishal, ar

Differential Revision: https://tails.corp.dropbox.com/D73575