This adds some of the API changes and improvements to the pkg resource so that it can make use of this feature.