Change the way the Echo class handled line inputs

The Echo class now contains a command_list, where the commands are stored
so there is not a huge amount of if, else cases.