Implement platformDefaultCookieStorageDirectory() and allow setting the
cookie jar file path for the curl network backend.

Reviewed by: Peter Gal