Added OpenGL context creation

Added basic context creation, and added basic swap buffers
functionality. Did some rearranging of the error handling source files.