function getHistoryStateFrame(request) {

	// Mark the frame as ours.
	// Stash the request opts that were used to navigate to this frame.
	return { reactServerFrame: request?request.getOpts():{} }
}
Set up a Q error handler to make sure that errors that bubble
up are logged via our logger. Note: This will affect all unhandled
Q promise rejections, not just the ones in this file.