New layout template changes

Allows layout templates to be built on a per page basis using the config