enable plugins to override templates

Currently, templates provided by plugins will searched with
last priority, thus overriding via plugins is currently not
possible.

Change-Id: I05981b75e147d5e1ae952144d4acc8c909513444
Closes-Bug: #1289305
Merge "enable plugins to override templates"