Switching to "Wikitext" class

Huge rewrite. Easier to use. Also fixed a few bugs. Inspect is not
needed anymore. No globals in core.