Moved some shared javascript away from Foosball.js and into new Shared.j...

...s.

And set a click event handler on the main menu list items to improve UX a bit