A Joint Network/Control Design for Cooperative Automatic Driving: Extended Version