Customise our bundle types.
Fix last commit
Refactor repetitious call
Add method to calculate base path
Enable init/upgrade/remoce of new modules.