Allow early hook for monkey patching hod_main

Clearly to be removed at later stage, but can provide easy access to customisations for now.