PHP - api v2 updates

use actual zapi namespace for DOM operations instead of wildcard
parse api v2 fields
handle subcontent parsing more consistently
add api version headers to requests