Recoded the pages module provider to use private methods. Makes the boot method more readable.