function applyRequestPlugins (req) {
	// run any registered plugins
	Plugins.forRequest().asArray().forEach(function (pluginFunc) {
		pluginFunc.apply(null, [req]);
	})
}
Wrap superagent's end() method to create an entry in a request-local
data cache that will be serialized to the client and replayed in the
browser.