added template filename cache, used core-rewrite to support modules like Aoe_DesignFallback