Add ensure parameter to packages

Allows setting ensure to 'latest' to upgrade packages.
Instead of nil, just leave these blank. The nature of the test is to look for the `ensure` attribute, so we can disregard everything else.