Merge pull request #2 from bernstein/master

add quat_stream_io and fix bug in context.cpp
Merge pull request #1 from chrislu/master

Merge pull request #2 from bernstein/master