Build class pieces needed to properly initialize SMF context in WP

Register the correct globals on demand, etc. Can now properly render
1.x or 2.x SMF installs as required.