Abstract saving and restoring enabled state of actions (ie. menu items).

Because there are more places where I'm doing that now.