Trying out a Finite State Machine

Managing the state transitions could be a real bitch.
Trying out StateMachine from

https://github.com/jakesgordon/javascript-state-machine

Because it has decent documentation and no dependencies.
Proof of Concept pause/resume for timer

Rough sketch of how pause and resume working for timer using
new FSM. Next up, making the subtitles playback respond the
same way. The FSM feels like the right way to manage
the complexity.
Add pause/resume to player text view

- track the current index in subtitle
- track the elapsed time just like timer
- extract player callback into it's own function
Extract playerControlView into it's own file.

views_playback.js is getting too long. Moving the control view to it's
own file because of the FSM code.
Bug: Fix typo in name reference

- used wrong reference name from module
- paydown technical debt
 - move callbacks to view class where they belong
 - move fsm event table to view
Make the events fire after the callstack has fired.
Merge pull request #2 from yanfali/fsm

Fsm - merge back to master