Requirejs-ization, adds basic handshake with server.