SELinux: Update the matchpathcon function to use the file's mode

If you don't supply a mode to the selinux.matchpathcon() function, it
fails to properly look up the context in some circumstances related to
context patterns in the SELinux policy.  This change looks up the mode
and supplies it to the function.
(cherry picked from commit 20a2c9a8fb6c6ecbed259b5deccb01c01bf3304f)
Metadata: Fix client list calls use list_clients() which is DB-aware instead of just self.clients
Merge pull request #138 from kincl/fix-query-clients-list

Metadata: Fix client list calls use list_clients() which is DB-aware instead of just self.clients
SSLServer: Poll for POST data correctly

This updates the do_POST() code to cleave more closely to the code in
SimpleXMLRPCHandler.do_POST (plus SSL magic, of course).  In doing so,
it eliminates a select() call whose timeouts were not handled
properly, and which thus left stray idle processes around after
incomplete XML-RPC calls.
POSIX: fixed unit tests for 1f0fa73
Metadata: get_client_names_by_* fixes

Fixed long lines.

Improved efficiency by avoiding multiple loops over the same data.
SSLServer: Removed decode_request_content call

decode_request_content() just adds support for gzipped content, which
the Bcfg2 client doesn't support.  Given that this feature was only
added in Python 2.7, it's unlikely we'll be adding support for gzipped
POST content any time soon.
SSLServer: close connections properly
Rules: fixed HandlesEntry for XMLSrc replacement

This makes HandlesEntry work with the new code that's in place for
StructFile to replace XMLSrc.  Fixes
https://github.com/Bcfg2/bcfg2/commit/2169edc1bba82076db776b75db89b79d6f2f4786#commitcomment-3968162
Revert "Rules: fixed HandlesEntry for XMLSrc replacement"

This reverts commit 542ededa8297b1889542d97b9bdfb8345dd7550c.

Committed to wrong branch.
doc: Remove bcfg2-admin query (moved to bcfg2-info)

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Client: Add entries processed as important to list of entries when
determining if a bundle has been modified
doc: Updated Client Actions doc to include BoundActions and another
example
schemas: Fixed Action `when` attribute description
Fix pep8 errors
NagiosGen: Fix pylint failure

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
NagiosGen: Fix overindent

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
SSLServer: Decode chunk for python 3

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Merge pull request #139 from kincl/pre-action-processing-with-independent-entries

Pre action processing with independent entries
XMLFileBacked: Monitor XIncludes whenever a FAM is available

This monitors XIncluded files even if should_monitor=False, since the
object monitoring the base file will not monitor XIncludes.  This
ensures that XIncluded files are properly monitored whenever possible,
particularly for Bundler and Properties.

This is a partial backport of 5b66845 -- as much of a backport as is
possible without a module-level FAM object.
bcfg2_local.py: Fixed addresspair port