Minor: Add a comment, and reformat a couple of long lines
Prepare connect() for HTTP 1.1. NOTE: this file will not run, as main loop not prepared for chunked yet.
Add http chunking. Also stop using delimited:length. Also added some other TODOs
Send the Connection header
Bug fix (applies to master branch too): requestParams was being set in OauthPhirehose::getAuthorizationHeader(), even though already being set in Phirehose::connect(). When they get out of sync Twitter was returning a 401. Same for $url. The fix was to pass both $url and $requestParams to getAuthorizationHeader(). (The base class version of getAuthorizationHeader() simply ignores them.)
Also send oauth_version as "1.0A" instead of "1.0".
Throw exception if Phirehose class is being used instead of OauthPhirehose.
Two bug fixes. This version works for me, even on using popular keywords (1022 statuses received in 60 seconds)
Remove references to using basic auth in userstream (Twitter removed basic auth option on 2013-06-11)
Added user and site stream support to the Phirehose base class. (I.e. added two constants, made URL_BASE a member variable instead of a const, and made setFollow() be usable for METHOD_SITE too).

The UserstreamPhirehose class was then derived from OauthPhirehose, meaning it could be stripped back to almost no functionality. (Also added an example script (userstream-alternative.php) to show that in fact you can do user streams by using OauthPhirehose directly.)

Minor: added $lang parameter to UserstreamPhirehose constructor.

Note: you now only need to include one header (either lib/OauthPhirehose.php or lib/UserstreamPhirehose.php), as the other library files include their dependencies now.

NOTE: the Site stream functionality is basic (only the follow parameter supported), and untested. example/sitestream.php

Userstream testing was confirmed to work for: my tweet, adding a new friend, someone retweeting me, me retweeting someone, deleting my test tweets.
Updated readme.md to replace the old example code that no longer works.
Updated version number to 1.0RC
Include path bug fix (thanks to Rafael Gonzalez)
Merge pull request #49 from fennb/chunked

Chunked