Naive Dirty flag implementation to lessen draw load and improve performance.
This implementation is currently as safe as minefield, because of stupidly implemented data grid.
Merge branch 'master' into gh-pages