Add a tox.ini for testing via tox

And test-requirements.txt for tests
Make inclusion of transmissionrpc unconditional

It is a requirement for everything, no reason to import it
conditionally. Also add a comment as to why collectd inclusion is
conditional
Add more tests, use mock

Using mock objects we test all the other functions
Enable flake8 tests

flake8 is pep8 and pyflakes together testing the readability of code.
Enable and make various changes to ensure compliance
Add travis integration

Populate the standard .travis.yml file
Add coverage run by default by tox
pbr as a test-requirement

Avoid the issue with pbr being fetched by easy_install and causing
TypeError: object.__new__(Markup) is not safe, use unicode.__new__()
Relevant info: https://bugs.launchpad.net/pbr/+bug/1384919