Theme file path filter

Add a filter so that a plugin can override a theme file without hooking the wordpress transient api.

Resolved issue #868