first build

fixed all the build problems (debug win32 only for now)
update simulation based on feedback from James
added HD mode

and a slew of other enhancements, both in UI and internally; refactored
init code; added styles into html; optimized for speed (a bit);
introduced high-def time mode; simulator now saves some values and the
source image in browser's local storage