Add basic HTTP referer support.
Check if the template to extend actually exists.