Move class ConsoleAgnet out of MainConsole.cpp.
Split ConsoleAgent::response into small functions.

All of them are placed in the anonymous namespace of the same file.