WIP: heartbeat.
Added some performance counters to heartbeat.
Refactored performance counters. Looking decent now.
Tidied up logging in integration tests.
Merge pull request #138 from NimbusAPI/heartbeat

Heartbeat