Added basic page routing and layouts, as well as some logic.