Change history alias into a function

This commit changes the history alias into a function which puts
the passed arguments before `-l 1`. It also provides a temporary
workaround to the lack of a `history -c` command in zsh.
This resolves #739 and resolves #789.
Simplify `if' into oneliner, allow spaces in HISTFILE
Organize history.zsh file and improve comments