Add support for attributes and permissions

- creation date
Update document mapping

- Include creation date
Cleaning