added 2 triggers for connected, message_sent
full cleanup and example
reverted to before cleanup
Merge pull request #3 from caseman72/master

IO triggers