added grant and revoke APIs to accesss documents by single users. Improved performance on collection checks
fixed #16