Small speed and memory optimisations, makes about a 20-40% speedup
Move max_line_length to a constant
Code cleanup
Don't add a content-transfer-encoding header if encoding is 7bit
Code cleanup
Implement automatic 7bit downgrade, fixes #176