Handle trailing slash
Refactored transport setup in tests
pep8 fixes
Replaced transport instance attribute with local var
Removed unused local variables
Merge pull request #5 from praekelt/feature/remove-trailing-slash

Handle trailing slash