richMode: handle spacebar
deps: use a different EventEmitter

Listeners are now called in the order they were added; previously,
this was backwards. Minor changes had to be made the Selection
module, as it needs to listen to events after everything else.
build: enable source maps