Added ability to optionally allow a site access key to be specified in prerequest and postrequest functions