Application.js no longer includes tree.
Add game code generation model logic.
Work game logic through views.