Add better shell title setting

The `settitle` command now sets terminal titles if not in a tmux (and starting
a tmux names it after the tmux).  Also the title is set automatically to the
TTY currently used, may need some tweaking with OSX.