moved out websocket logic to keep the loadTodos function simple and plain
moved out websocket logic to keep the loadTodos function simple and plain

mjw56/react-components,mjw56/react-components,mjw56/react-components