added API for packaging
refactored private method addType
implemented support for packages
added command ListPackages
Merge branch 'feature/supportPackages'