Split templates out into their own files

They are now synchronously loaded before app initialization