Testing

1. emitter.js is a class now
2. automatic test runner
3. code coverage
4. email test results