fixes #31 and #30: basic pub/sub; listen for GOODBYE

- added message switch to router
- basic unittests for pub/sub
- also added README and doc.go