Added package repository path lookup order
- Implement package repository lookup logic in kpm and runtime
- Share ResolveRootPath implementation
- Added packages parsing for global.json file
- packages flag overrides all lookup rules