Dynamic prompt: show prev exit code if non-zero.

* By the way fixes the exit code display that was broken since my previous commit. It always displayed zero because the fancy subshell with date/time printf always succeeds. Duh.
* Renamed settitle to xtitle and only use the first arg as title, i.e. quoting of titles with blanks required.