Implemented pluggable logging.

By default its disabled without NDEBUG flag.
Renamed example server to "simple".
Removed the non-trivial parts of simple server.
Reimplemented tests.

Removed test cases and went straight into integration tests that
are running from python script using urllib2. This script connects
to a real "dummy" server that outputs JSON content.