Refactor sanitize.py (split everything into functions)

Drop the element whitelist, since it's more trouble than its worth.
A tool to report the element usage in an EPUB would be better.
Merge sanitize.py refactoring from epubbase

Conflicts:
	sanitize.py

The generated EPUB is functionally identical.