Improvements to message handler auto-registration including resolving message handlers as they are needed (not during initialisation).