imports using meta class and settings class

Starting to migrate code to use classes for different capabilities.
Implements the WPMetaConfig class, Settings Class and moves some shared
functions into the XMLHelper.
move shared functionality into XMLHelper