Added preliminary timestamp and heartbeat code

Not sure if heartbeat thread works. Need to verify if timestamp serialization succeeds.
Fixed timestamp serialization

Scrapped old serialization method. Newer interface is much cleaner and supports piggybacking multiple strings.
Still need to test for memory leaks on the EWS machines.