Added better extensibility, extensions, and demo

Added better extensibility with a debug extension and a
requestAnimationFrame extension. Also added a demo with a reference
section.