Change permissions definition inside caldav.php

Permissions object and ACLs can now be generated using the
container too.