Add do_shutdown and simple do_history

Bash is already shut down at exit, but this adds a `do_shutdown` for a restart.  

`do_history`  uses the bash `history` command to fetch the history.  In my tests `do_history` was only called at startup.