Add preliminary templating and i18n support