update simple kernel example

- use correct socket types
- don't ignore zmq routing prefix
- deduplicate header construction
- deduplicate wire format
- remove unnecessary threads
Merge pull request #1 from minrk/master

update simple kernel example