Set limits on the number of headers that can be sent and their length.
Merge pull request #46 from TheTorProject/fix/issue_e

Set limits on the number of headers that can be sent and their length.
Refactoring and tidying up of various different parts of the codebase.

Let pylint guide the way!
Add unittests for the report handlers.

Add a useful base class for implementing any unittest.