Fix save action on settings megamenu.
Make baselayer and xray states hash-controllable.