Add get_selections() and set_selections() for dpkg.

This module will enable to freeze a package at a certain version, with the "hold" state.
Add TODO, amend later... FIXME.
supporting tomcat6
less copy/paste
Merge my dpkg-selections branch with develop.

Resolved conflicts in modules/apt.py.
Fix merge mistake.

urllib2 and json is part of standard Python.
Use yaml.safe_load()
Add another TODO
Use code-block

As per @terminalmage suggestion.
Fix tracebacks when prefix not specified.

This fixes #6886 by accounting for instances where the prefix is not
specified, catching the KeyError exceptions.
Use None, not empty dict in function definition
Fix fad method call and bad default arg
Send {} if grains is None
Clean up single quotes and the lines are too long

This still needs some style love
Merge pull request #6911 from UtahDave/fix_pillar

Fix pylint warning about {} in argument default.
Add check for glob_match to make sure the tgt is a string
Store salt related path configurations in the `distribution` object. Fixes #6906.

Added `srv_root_dir` to the paths to check.
Remove trailing white-sapce.
Add missing new line at the end of the file.
Update reclass_adapter documentation

Signed-off-by: martin f. krafft <madduck@madduck.net>