some more modifications

* add some const
* separate client and server demo
* draft for connection initiation