Improve Zsh configuration.

* Move history configuration into a separate script.
* Use curl instead of wget to find out external IP.
* Change setting terminal emulator title way.