I figure we should keep this out of graphmod.py and templatekw.py for now.
Moving the extension functionality out of hgext is a separate issue.
Calling ui.config() inside getgraphnode seems like it might slow things down,
but it needs to happen there because of the template keyword. We probably want
to honor config overrides, so we can't cache glyphs at this level.