Merge pull request #5 from wick-ed/master

Client uses the app name within the connection context + minor refactori...
Refacotor for usage with new persistence container functionality
Add method to set session ID
Use StreamSocket of webserver instead to Socket/Client
Merge pull request #6 from wagnert/master

Refacotor for usage with new persistence container functionality
reformatting to fit coding styles