Refactoring, implemted all response handlers, except the search_channels handler.