TINYGL: Dirty rects system.

This PR contains an implementation of dirty rects system.
You can find more information behind the design and implementation in the following blog posts: 
http://subr3v.blogspot.co.uk/

But doesn't the OpenGL renderer also need to flip buffers at some point? Wouldn't it be possible to have a similar function there, and a pure virtual one here?