Merge pull request #21 from dkorolev/fix_upstream_master_tmp

Bringing master up to date.
Merge remote-tracking branch 'upstream/master'
Made Stream and Storage tests pass with in-memory and LevelDB implementations.