Made a bunch of changes

spice.js
The diff is too large to show here.
Reorganized the whole document, starting to include comments,
refractoring code.

index.html:
Changed the way you define App.main; Inclunding a new App.OnLoad for
when the app loads. Init the application, and apply settings.
Cleaning

Cleaned up the html, got rid of some indenting..