Merge pull request #2 from bernstein/master

add quat_stream_io and fix bug in context.cpp