2) Is there anyway to have xml_curl send the password for directory entry requests.

try this:
      <!--<param name="gateway-credentials" value="muser:mypass"/>-->