Reimplement command_queue as a priority queue.
Buffer large results if we don't get all of it at first.
Add a handler for display information.