Logging support

Log all GET/POST requests with the Python logging library (output is disabled by default).
Enabled in the unit tests to help with debugging.