Only save pane history if its not running any program (other than Bash
shell). Fixes a bug where 'history -w' was sent to pane running Bash
script.
Add a note about HISTCONTROL to README.
Merge pull request #55 from rburny/master

Fixes to #51 and #52