Postprocess hook

Bringing this postprocess-hook branch back up to date with the current master (hence all the other commits). I only needed to modify CustomPostProcess.js.