Lua-Support: Use new features of template engine

- Added custom and additional templates, using the new features of the
  template engine for personalization files, setup wizard, ...
- Added a skeleton for the template personalization file.
- Updated the template library with features from template interface version
  1.0.
- Made frontier patterns available for Lua 5.1 (apparently they were
  included but undocumented).
- Corrected the documentation.