Moved context's state into its own class and added draw calls to context and context_impl.
Implemented texture and buffer binding and buffer data setting.