Restore expanded states of server groups on load

Add back old functionality to restore the expanded state of
server groups from the config on load.
Fix a bug causing the parent to always get selected on collapse

Forgot to set a variable to only select when a child was
selected.