Initial webgl framework, generates a WebGL context and sets the default states.