general refactoring,
option to use socket.io instead of websocket,
added upnp-style events to both upnp and bonjour protocols,
upgrade existing examples to socketio,
add new examples for events