WIP: moving publishing to a templating system

Change-Id: Iabcdbb563790ad3edb295aa05c9167553c80a103