storage: dirty checks for thin provisioning support

Resolves trac tickets 276 and 277
Merge pull request #66 from jsynacek/devel

storage: dirty checks for thin provisioning support