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.
Merge pull request #41 from wtsi-npg/devel

Merge recent changes from wtsi-npg:devel