Solution for custom twig function & test & tag

DO NOT MERGE. It's intended to show the diff only.

It shows how to extend Twig with a custom
- function (`class_attribute`)
- test (`matchingregex`)
- tag (`sleep`)