Engine optimizations (timer and graphics)

Updating moved to timer.js
The canvas' background color is now a CSS property
Small improvements on the layout and the wave demo