Replaced staticUpdate() calls with dirty flag

This will give us 1 update for static light during update cycle not
depending on how much changes in it we have done.
Merge pull request #28 from rinold/master

Replaced staticUpdate() calls with dirty flag for better static lights performance