Add identity support to Socket
Add pub/sub example. Fixes #15