Splitted module manager setup and module loading in bootstrap code

Allows different implementations (Web, Cli...) to behave differently
without duplicating code