WIP: moving publishing to a templating system

Change-Id: Ic1c55d35e52e407864d339927b453de58a64e03c