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