moved remainder of websockets message handler framework to xwidgets