Refactor Named WebSockets to be a standalone library ('main' package now in cmd folder)