types extension

To try out the limitations of the extension system of the `WebSocketBase` class and to provide a non-standard conform but feature-rich way to handle bi-directional connections I want to add a `types` extension to the project.

this relates to #11 and #26