Lua-Support: Automation features.

- Added automatic insertion of file headers.
- Added automated function description.
- Added escaping of special characters in regex patterns.
- Reworking the template library (in progress).