Added updateResources + tests + cleaned up sockets.js.