Automatically remove read access when consent is withdrawn.

Fixed incorrect handling of zero as a metadata value.
Merge pull request #273 from keithj/devel

Automatically remove read access when consent is withdrawn.