Added missing closes to hgfs.

This should resolve #8811 and possibly #8810.
Add pkgrepo.managed test SLS for Ubuntu

pkgrepo.absent is not behaving properly, will add a test case for
pkgrepo.absent later once I've had a chance to troubleshoot.
Add pkgrepo deps for ubuntu

This fixes travis failures due to needed python module not being
installed.
Document the fact use does not inherit requisites, @ref #8796
The `docker` tests need docker. Skip them if not available.
Include the python encoding file header on tests.
Fix PyLint W1401, anomalous backslash.
Include the coding header.
fix missing blanks in sphinx syntax
PEP8 E302 and E303 blank lines fixes.
Indexed `.format()` curly braces!
Fix `Undefined variable`
Fix PyLint W0105(String statement has no effect)
Fix PyLint C0322 and C0324 - Spaces around opertor and commas
Ignore the relative import warning.
Remove extra white-space.
Fix PEP8 E261 - White space before inline comment
Extra or misplaced white-space
Ignore the exception not declared Pylint error.
Remove duplicate method