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/

Maybe it's better if I rewrite this as I rewrote the big if-else sequence in zblit? 
It'd end up being more readable that way.