irc/cstemplate.bash: initial import from gist.github.com