fix nodes unit tests to work on el6 which does not support closures.
Merge pull request #538 from pulp/jortel-jenkins-nodes-fixes

Fix nodes unit tests to work on el6; both tarfile and gzip versions don't support closures.
some refactoring, cleanup, and updates to docstrings
976561 - added and explicit pool size for the socket "pool"
added a new decorator around the query methods that calls end_request in order to manage the sockets automagically
added an end_request to the db flush
988913 - mirror (node) strategy only affect specified repos when units type_id=repository.
docstrings.
Merge pull request #541 from pulp/jconnor-976561-too-many-mongodb-connections-4

Jconnor 976561 too many mongodb connections 4
correct docstring pertaining to purging orphans.
Merge pull request #543 from pulp/jortel-988913

988913 - mirror (node) strategy only affect specified repos when units type_id=repository.
Merge branch 'pulp-2.2' into node-profiles