Refactoring of toggling animation code.

Moved toggling code out of SpaceClickyGame.js into UI.js.  Changed
behavior so that clicking any tab when the bar is hidden shows the tab,
clicking the same tab toggles visibility, and switching tabs shows the
bar if it's not the current tab.