org settings: Make sync_realm_settings to be available at load time.
org settings: Make sync_realm_settings to be available at load time.

This moves `sync_realm_settings` function out of `_setup` so that
we can call `settings_org.sync_realm_settings` without opening
settings page at least once.

This also fixes a minor bug in which if we have two tabs opened and
in one we haven't opened settings page at least once and in
another we change an org setting, then we get an exception in
the former tab because of the event as `sync_realm_settings`
isn't defined yet.

zulip/zulip,rht/zulip,rishig/zulip,rishig/zulip,kou/zulip,tommyip/zulip,punchagan/zulip,synicalsyntax/zulip,synicalsyntax/zulip,dhcrzf/zulip,synicalsyntax/zulip,hackerkid/zulip,rht/zulip,dhcrzf/zulip,tommyip/zulip,punchagan/zulip,punchagan/zulip,punchagan/zulip,shubhamdhama/zulip,shubhamdhama/zulip,jackrzhang/zulip,timabbott/zulip,rht/zulip,brainwane/zulip,brainwane/zulip,tommyip/zulip,kou/zulip,synicalsyntax/zulip,hackerkid/zulip,synicalsyntax/zulip,tommyip/zulip,dhcrzf/zulip,eeshangarg/zulip,dhcrzf/zulip,showell/zulip,andersk/zulip,zulip/zulip,timabbott/zulip,timabbott/zulip,andersk/zulip,rht/zulip,hackerkid/zulip,timabbott/zulip,tommyip/zulip,zulip/zulip,showell/zulip,tommyip/zulip,timabbott/zulip,kou/zulip,eeshangarg/zulip,jackrzhang/zulip,rishig/zulip,zulip/zulip,rht/zulip,rishig/zulip,kou/zulip,zulip/zulip,shubhamdhama/zulip,rht/zulip,eeshangarg/zulip,showell/zulip,eeshangarg/zulip,andersk/zulip,zulip/zulip,andersk/zulip,shubhamdhama/zulip,timabbott/zulip,tommyip/zulip,shubhamdhama/zulip,punchagan/zulip,jackrzhang/zulip,synicalsyntax/zulip,kou/zulip,punchagan/zulip,hackerkid/zulip,dhcrzf/zulip,andersk/zulip,brainwane/zulip,jackrzhang/zulip,eeshangarg/zulip,andersk/zulip,rishig/zulip,showell/zulip,showell/zulip,brainwane/zulip,synicalsyntax/zulip,jackrzhang/zulip,brainwane/zulip,shubhamdhama/zulip,timabbott/zulip,brainwane/zulip,rht/zulip,kou/zulip,kou/zulip,zulip/zulip,andersk/zulip,eeshangarg/zulip,shubhamdhama/zulip,rishig/zulip,hackerkid/zulip,punchagan/zulip,dhcrzf/zulip,showell/zulip,dhcrzf/zulip,brainwane/zulip,jackrzhang/zulip,hackerkid/zulip,eeshangarg/zulip,jackrzhang/zulip,hackerkid/zulip,rishig/zulip,showell/zulip