Refactor code turning a series of pages into a stream

The class StreamFromPages is public in the common library as I expect it to be
used for other parts of the gcloud pacakge.

R=lrn@google.com
BUG=

Review URL: https://codereview.chromium.org//556783002