Add functionality to Compile()

+ iterate through ordering, process heartbeats one by one
- heartbeat processing not actually implemented
+ generate new heartbeat
+ sign generated heartbeat