rewrite of server code

* not a class anymore (oriented object did not bring any value)
* recognize web socket connection and corresponding session
* http and ws ports are configured through settings.json
shorter name and password for test user