Fix syntax error in jinja context examples

Bad indentation meant it would pass in the pieces of context as part of
the **kwargs, rather than as part of the context kwarg.
Merge pull request #5176 from basepi/jinjadocs

Fix syntax error in jinja context examples
smartos_imgadm : add a *basic* search option and an update function

* update_installed() (aka. imgadm update)

* avail(search=None) : outputs the last occurrence of 'string' from
'''imgadm avail'''
Merge pull request #5178 from virtua-network/imgadm_feature

smartos_imgadm : add a *basic* search option and an update function
Remove retcode arg from cmd._run, Fix #5112

Checked for external uses, there are none.  Really not sure what it was
gaining us in the first place, but it's been out of use since the fix
for #2640.
Removed useless commands and added Xen dom0 support for NetBSD
Merge pull request #5179 from basepi/retcode5112

Remove retcode arg from cmd._run, Fix #5112
Make pkg state work with Windows packages
Double to single quotes.
Add `yum` to freezer includes if we can actually freeze it, ie, is it available?
Merge pull request #5180 from UtahDave/develop

Make pkg state work with Windows packages
add missing globals
Merge pull request #5181 from UtahDave/develop

add missing globals for Windows stuff.
Use .next() instead of dummy loop, Fix #5120
Fix my stupidity (leftover `:`)
fixed: TypeError in pkg._find_install_targets when version is None
Work around `__file__` `NameError` thrown by `bbfreeze`. Fixes #5172.
Get proper Windows full pkg name
Merge pull request #5185 from UtahDave/develop

Get proper Windows full pkg name
Merge pull request #5169 from iMilnb/develop

Implemented XenAPI backend as a 'virt' __virtual__ module