Introduce logging. The background network operations require it.

See Core/Logging/Macros.h.
Implement and test StatusRetriever.