[closetag addon] Restructure
[closetag addon] Allow closing by typing / even when before a word

Closes #1795