Add helpful messages about config problems
More precise function signatures
Refactor module config/init

To be able to handle modules that are available but not enabled in the
configuration -> they will not be registered/invoked
Set up default callbacks after the chain finishes
Fix bugs uncovered in testing server handshake
Fixup a typo