REVIEW: 109253
REVIEW: 109253

In addition to initial commit, here a bug has been fixed:
Do not use KateDocument::getWord() -- it returns a 'word' including any non-space chars,
but 'Remove tail' should stops at punctuators!

hlamer/kate,hlamer/kate,cmacq2/kate,sandsmark/kate,hlamer/kate,hlamer/kate,jfmcarreira/kate,DickJ/kate,sandsmark/kate,jfmcarreira/kate,hlamer/kate,cmacq2/kate,DickJ/kate,hlamer/kate,hlamer/kate,DickJ/kate,jfmcarreira/kate,DickJ/kate,hlamer/kate,hlamer/kate,sandsmark/kate,cmacq2/kate,sandsmark/kate,hlamer/kate