add config file support for redis, rewrite command line client