Fix failure percent calculations.

Make fail percent be failures/(success+failures). If you have 1 success
and 4 failures, your fail percentage is 80%, not 400%.
Reindent, fix tabs vs whitespaces
Switch to unittest2 discovery
Merge branch 'rory-fix-failure-percent'

* rory-fix-failure-percent:
  Fix failure percent calculations.
Fix some deprecated code
Smaller cleanups, reindents, whitespace fixes
Let test_average tests run again, still failing though