Add release infrastructure.

This is our common infrastructure for doing releases. We'll be uploading
straight to PyPI, leveraging their hosting.
Fix pyflakes warnings.

These were all just unused variables, mostly in unit tests.
Release kgb 0.5.