Adding permissions field to documents retrieved by id
Returning doc permissions for all base operations except base.all
Populating the permissions property of events returned by base.all. Using Lazy library lazy iteration.