Added namespaces to library files.
Refactored class and file loading so that plugins can contain the default implementations of their own pages.