(refactor) relocated get_template and render methods in appropriate modu...

- moved functions and all module dependancies into appropriate files