Changed module loading to load modules grouped by prority in series
Changed module loader to always init config for module after load.
Added test of edge cases in module loading.