Add molecules in gui

Open username-removed-71312 requested to merge add-molecules-in-gui into master

Allow Element widget to build molecules (Element(..., allow_molecules=True)).

Various improvements to how Element widgets are handled (grabbing focus, using Enter to trigger callback).

Also add a has(key) function to Collection objects such as g2, since that was useful.