Implement api call for updating object acl, some refactoring.