Added addDocumentLibrary method. Add methods for work with permissions