This is used to log method calls on the page _chain_.  Method calls on individual page/middleware objects are not automatically logged.
function logInvocation(name, func){
	return function(){
		logger.debug(`Call ${name}`);
		return func.apply(this, [].slice.call(arguments));
	}
}