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