Move functions into ui.initialize().
Move functions into ui.initialize().

We had three different initialization entry points
for ui.js, which seems a bit excessive. :)

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