small helper library for handling server and client side http WebSocket upgrades