added template variants handling for frontend templates; also changed FreshCat as there's no need to handle this in headers.inc.php anymore