fixing php notice

we should at least initialize all our important variables
Merge branch 'master' into refactor/protocol-detection
Merge pull request #2337 from jadwigo/master

fixing php notice
Prevent " Can't use method return value in write context"
Temporarily disable this test. Need to fix properly
Tweaking protocol detection for HTTPS.
Merge pull request #2338 from bobdenotter/refactor/protocol-detection

Refactor/protocol detection
Merge pull request #2339 from bobdenotter/master

Bumping version to 2.0.1 for minor release.