MDL-42131 editpdf: Add missing require_login() to entry pages

Also:
* change require_once(config) to require(config)
* always define AJAX_SCRIPT
* Add full crumb trail to navbar for testgs.php