prototype computeHttpHeaders and call in verifyCreds
implement most of computeAuthHeader
add user-agent header