Add command history to cli

Use up/down arrows to cycle trought it