Adds support for page templates

 * it's a hack job
 ** it still needs to be tested