fixes #83, fixes #85: module-manager: adds module.loaded as node does and fixes the problem of circular dependencies