Move websocket support into a sub-package to reduce necessary dependencies.