Fix the 'add' process

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
simplify the update as well (because it depends on the 'add')

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Simplify the move process

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Fix tests for 'add' and 'delete'

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Renamed the FileIndexTest to IndexTest because it tests folders too

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Add permission to FolderIndex

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Add user permissions to FolderIndex and add tests

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Use the users in the index to notify

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Some tests fixed + notification for 'add' fixed

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Removed warning and added waiter

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>