added simple resource handler, began work on socket.io