Improve templating options, move page admin js into the page app