Template name detection, better directory traversal, internal links properly translated.