Rules on delegations and accident handling for autonomous vehicles