Add command histories

This PR is for #29 

- Add option to save command histories.
- Keep command histories when Run Command Action was run.