better handling of events
updated tutorial
more complete EventEmitter for web, added optional check for method if buddy is online