Remove boolean restriction and add extra opts to performRequest()

Remove restriction of boolean type on $return argument to allow casting (notably: allow 1/0)
Add $additionalCurlOpts argument for additional cURL options to be set by user. This will allow people to disable peer verification if necessary.