Template overriding and inheritance

A PoC modularized template with inheritance working has been added. If
the override isn’t found, it defaults to the root. In addition,
fail-safe A/B testing has been added.