Fix infinite loop in debug_clear_errors API method and also change default from clearing 20 errors to 1 million. Initialize CLI before initializing p2p network (this allows us to record errors that occur during network initialization in the error list). Change several std::couts to ulogs, still need to check for more of them.

Conflicts:
	libraries/client/client.cpp
Ensure we display user messages printed before we've called getline for first time.