Event sequencer cleanup

* Make most methods chainable
* Allow Function or Function[] as param in certain places
* Rename badly named variables

Change-Id: Ib0bb2713baa321707264664899449b9995e88baf
Merge "Event sequencer cleanup"