re #559: significant progress on per-node-type page wrapper settings
re #559: refactoring and fixes to the ajax callbacks