Provides the base class and authentication code for all non-home pages.