Adds initial hacking checks to Patrole

This patch:
  - Adds hacking check to Patrole (executed via tox -e pep8)
  - Corrects a few hacking errors
  - Adds hacking documentation to Patrole

Change-Id: Id43e24060a5290df91c594df6a38ba0cb239bbaf
diff --git a/tox.ini b/tox.ini
index a004c6e..be35509 100644
--- a/tox.ini
+++ b/tox.ini
@@ -59,3 +59,6 @@
 ignore = E123,E125
 builtins = _
 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
+
+[hacking]
+local-check-factory = patrole_tempest_plugin.hacking.checks.factory