Added User-Agent: DAVKit/4.0.1 to headers in icloud.php

It seems to reject requests without the user-agent information being there. Adding a iCal DAVKit header fixes the issue.