Cleanup to web scripts, bug fixes, and enhancements to Doc support