Add topic event and tests for topic and rpl_topic

Fixes #9
Merge pull request #18 from maxanton/topic-event

Add topic event and tests for topic and rpl_topic
add support for away-notify cap
Only try to set line.status if awaynotify is enabled
away-notify: add tests