Templates rewrite WIP. Support for nested {% extends ... %} etc.