Revert "hack up an edit function"

This reverts commit 4f6765332a03688f58335b925db41e86367c039b.
use MediawikiPage::edit