A very much work-in-progress improved API for Authorize.net using php's DOMElement and curl