core: add new template engine

The new ztl template engine uses the standard ErlyDTL project,
and extends it with customizations using the new extension mechanism
to get all the zotonic specific features; making it a drop-in
replacement for the current ErlyDTL fork maintained by zotonic
(once all the custom extensions has been implemented).