Lua-Support: Template library.

- Reworked the template library.
- Lua related documentation.
- Minor changes.
Lua-Support: Minor changes.

- The menu entry "Regex -> esc. spec. char." is now named
  "Regex -> esc. magic char.".