Fixed some stuff having to do with templates and serving files.