Add command histories

- Add option to save command histories.
- Keep command histories when Run Command Action was run.