Fixe bugs with caching management of partial views.

closes #1203
- The partial views are loaded into the cache when changing theme and
not every request like before
- Templates for helpers are loaded from the active theme and if not
found the default template is loaded