Added ability to supply a templateto use for a page/post and if not supplied defaults to index.html