comment out unneeded code in get_theme_template

this function get_theme_template is doing nothing and needs to be removed
reduce the number of calls to get_setting
move get_theme_root() calls out of get_template_sources() and save it in self.theme_root variable for better performance