Fetch event communication, receives 'fetch_upstream', send 'fetch_downstream' with cached playlists.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Play event communication, emit 'sync_upstream' event.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Scheduler event communication, receives 'fetch_downstream' from Fetch and send 'fetch_upstream' to Fetch.
Receives 'sched_upstream' from Sync, and send 'sched_downstream' to Sync.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Sync event communication. Receive 'sync_downstream' from Scheduler, Receive 'sync_upstream' from Play.js.
Send 'fetch_upstream' to Fetch and 'play_downstream' to Play.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Fixing unlocking upstream in Fetch section.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Adding play dowstream just to check downstream.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Fixing unlocking upstream in Scheduler section.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Fixing unlocking upstream in Sync section

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Adding some logs for unlocking functions.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Variable declaration and initialization missing.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Fixing appendScheduledClips method

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Fixing logs.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Calling timerUnlock with logs for reference

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Just adding a variable queued_clips  for clarification

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
No need to wait for conversion, just ask for what is playing

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Adding time out to 6000 ms.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Updating call to getExpectedClip, takes Scheduler scheduled_clips variable as parameter.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Not sure if downstream is to fast so we dont have time between 'converted' event and 'synced' event to add a listener.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Assuring black playlist will be in range

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>