Added support for specifying the version of a package to install

WIth this change, users can specify the package item as JSON blob with a 'name' and 'version' to use for the package install. If the package item is a plain string, it is treated as the package name and version is set to nil in order to install the latest version (i.e. it should retain the existing behaviour for existing configs).