Housekeeping.

Expanded docstrings, refactored code, tidied whitespace, and removed
unused elwiki-body-header and elwiki-body-footer.