Template updates

This adds some necessary template changes for deploying to a sub directory.