update simple kernel example

- use correct socket types
- don't ignore zmq routing prefix
- deduplicate header construction
- deduplicate wire format
- remove unnecessary threads