Added test vectors and tests for crypto::stream primitives

Also simplified implementation of `stream_xor`.
Closes #3