Make template formats pluggable

Change-Id: I546c34db0803306feaa9bfd326a7aef837db0edb
Merge "Make template formats pluggable"