Added HeartbeatHandler framework and simple test in sample.py

- Added HeartbeatHandler framework.
- Currently just sends heartbeat to server on a 15 second timer