Rewrite rules and permalink issues dump

WordPress 404 Permalink Rewrite Problems

Produce a raw dump of some of the core parts that should help shed some light on issues regarding WordPress rewrite rules, permalinks and missing template files when a 404 is encountered. Fork, improve, comment. This is for environments with no fancy IDEs, Xdebug, debug plugins.

(for Javascript-less browsers: