Fix style and add encoders for transfer encodings
Mostly refactoring and style fixes.  Some length checking in the Address class