register utility methods on request

menu() will now register utility methods menuIsAvailableAction() and
menuIsEditablePage() on request for use from wikiconfig.py.