Robot extends EventEmitter

This is more idiomatic for node applications and simplifies the `Robot` class.