Added partial requestAnimationFrame support

Use requestAnimationFrame to detect browser visibility and stop / start
the glitz animation loop.  Pair programmed with Nicholas
Bergson-Shilcock ( https://github.com/nicholasbs ).

Redacted version of Erik MË†ller & friends requestAnimationFrame
polyfill ( https://gist.github.com/1579671 )