Page engine

This pull request contains all the source code + tests related to page engine feature.