Added working config to use r.js optimizer.
Added socket.io to package.json dependencies.