Added support for the default page logic to the initialization routine

Copied from an SVN commit that happened after the GitHub move