Coding the HTTP requests. PUT seems to fail with "Error updating contact: Invalid key" for unknown reasons.