perf boosts

- custom pub-sub for propogate state changes instead of event emitter
- minimize closure allocations.
- as we only need to publish once, cleanup subscribers after publish
fix all to work if an array element is null
tidy-up RSVP.hash
fix typo