Fixed IRC bot reacting on unclosed single quote.
IRC bot notify about command with unclosed quotes.
Repeated code was replaced.
Added few tests.
Removing redundant code.
Function name changed
Merge branch '631-shlex-singlequote-issue' of git://github.com/MichaelMayorov/buildbot