Fixed broken tests.
Include newer mimeparse.py (MIT license) to fix mime type parsing.

The included mimeparse.py is marked as 0.1.4 on
https://code.google.com/p/mimeparse/ but the version in the code says
0.1.3. The code is however newer than 0.1.3 on pypi, because it handles
the new test cases.
Split connection.py into several files.
Renaming some private methods.
CachedConnection/CachedPersonConnection no longe inherits from Connection.

Trying to make the dependencies easier to understand by reducing the use
of inheritance.
Fixed broken code after create text refactoring.
Move host and port arguments to connect on KomSession. Fixed tests.
Rename some private methods.
Moved some functionality out of the Connection class to make it smaller.

The idea is to separate the protocol parsing from the socket and request
handling. We should probably rename some classes to make their purpose
more clear. The reason for the separation is that we want to be able to
integrate with gevent, without having to re-implement anything related to
the protocol parsing.
Large refactoring. Not yet complete.
Some more refactoring and fixed tests.
Removed some debug logging and added tests.
More refactoring.
Convereted a lot of classes to new style.
Added comparison methods for some types. Removed unneeded parse methods.
Some more connection tests and comparison methods.
Split kom.py into several files.
Some renaming and cleanup.
Renamed conn to buf to clarify that we expect a ReceiveBuffer.
Use to_hstring where possible.