Added composer, Ratchet and refactor websocket server