Inject remote functions earlier after frameNavigated instead of loadEventFired

Change `RemoteAgent` to inject our `RemoteFunctions` into the browser window when `frameNavigated` is fired instead of `loadEventFired`. This is a possible fix for network latency issues that cause live development connection timeouts.

See #6122 and #6912.