hack up the ref. implementation

This adds various features:
 - A scalable window
 - A "darkening" effect
 - A silly stripes effect on the textures
 - A binary frame counter
 - A way to not show the crosshair
 - Automatically saves the world  (no pun intended)