Added basic code for pages app.
Started implementing pages server side.