Added and fixed framebuffer with color and depth buffer support. Also
moved glew init to create from context and did some small code changes.