Revert the sillier sanitizy.js-compat changes to sanitize.py
Extend the 'p' whitespace cleanup to more elements
Add insertBefore and insertAfter utility functions
Add a pad helper function
Remove code some sanitize.py that has no effect on the output

This is code that should be separated from a common base