Lua-Support: Reworking the template library.

- Minor changes.
- Reworking the template library (in progress).
- New codesnippets.
Merge remote-tracking branch 'origin/master'