CMS-3994 Use new thymeleaf libraries in sample modules.
Use require() based thymeleaf library and resolve function for referencing resources.