Fix bug where wiki and resource method variables would be undefined
Fix bug where $Class would be undefined if to resource was requested
Fix major bug where scripts and stylesheets would fail to load