Added Session type
fixes #28: implement websocket transport