now flushing response before triggering window
rewrote the main loop into a state machine

Enables us to reply to HTTP requests while waiting for
the window to open.

Which also enables aborting an open request.
also disable opening relay when enabling the closing one
wrapped serial debugging statements into macro
added status page

by abusing the window param... better router would be nice
removed debug flood + added link to status page
restored old timings

click.html was outdated
added progress bar to title page
slight code cleanup
added accumulated open time to status page
switch to gzipped index page
fix for json, stats page, and JS
fix typo in js
Merge pull request #3 from rwos/misc

State machine / progress page