Add metrics sessions, don't use global event emitter for reporting.
Delete emit.js.