Fixed some errors and begun framework for streaming.

Streaming was planned for 1.0, but the release date for 0.9 has been
pushed back a week, and I'm bored. That said, streaming is pretty easy
to do, anyway. There may be a few more commits before the 1.0 release,
but I probably wont add any totally new features.