COMMANDBOX-48 Refactored some logic in the PackageService and added save and saveDev params to install.