add readline for command line wallet

add readline for command line wallet.
can use key up/down/left/right/backspace/ctrl-r ....