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/

Isn't this really a part of the former if, if you move the "transform._flipVertically == false" bit inside the previous if, then this is an else to that, no?