Library of functions to help applications for authentication and permissions management on docTypes.