Deferred editor panel filling in until display.

This means I don't need to refill it if the metadata changes, since that
can't happen while in editing mode, and it will probably result in
better performance too (maybe immeasurable).

Also fixed a few unnecessary uses of querySelector, I got confused at
one point between template content, which isn't accessible using
GetElement*, and normal shadow roots, which are.