Heartbeats API

 - Create heartbeat when valid data is received
 - Update the last seen of the device when a heartbeat is created
 - Add last seen column on the device index page