Upgrade Factory update

Added a Factory to make Upgrades easily.
Changed Upgrade constructor: takes an array as parameter now.
Reorganized JS imports so that the game only launches when everything is
ready.

Also: tried to make a Background class to handle the background and the
various fluff (here, some cog images). Background.draw() doesn't work
yet.