Revert "Forgot a little cleanup"

This reverts commit efa8324b0ee8f99b2282f4448ae743dbb1121b78.
Refactored out old template file
Refactored web site constants
Added state classes, will use for converting app to FSM
Changed the code into a class hierachy
Fixed the fix
Fixed event bubbling on click, as well as tons of little bugs
Some cleanups in the Image and Submit States
Updated the debugging model a bit
Cleaned up node a little
Cleaned up user a little bit
Tone down the debug output a bit
Bug fixes across the line
Got it working on Android again