Added syncStarted and syncEnded events to heartbeats

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Added test to heartbeats to check if sync timeout was working properly

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
keep an array of starts and ends, and make sure NONE fail, not just one

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
add some logging for better debugging

Signed-off-by: Tomas Neme <lacrymology@gmail.com>