moved pages things into it's own app; added templates loaders