#23 converted most components to AMD modules

Game aspects are now loaded with require.js
#23 moved the jsApp object into its own class, game