Added command history feature.

This feature allows people to jump to the previous or next command, they typed on the console.

Signed-off-by: fdemian <demian.fc@gmail.com>