FIX Overriding of theme templates in project folder

Fixes issue of templates not being found when a Page's main/Layout templates are split between the project and theme folders. Adds more expansive testing for template loading.
Merge pull request #2776 from ryanwachtl/fix-get-candidate-template

FIX Overriding of theme templates in project folder