Merge branch 'jmrunge/heartbeats' into Lacrymology/mosto-backbone

* jmrunge/heartbeats:
  Fixed checkSchedules to obtain end time of loaded clips skipping blank clips
  Added timeout to stop and some pretty logging to mocha
  Logging to tests
  Started modifying func test
  Added emit started signal and prettyfied code
avoid having so many if( result )s

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
make a write semaphore
and free read just after the expected clip has been loaded

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