Expose adapters.

Now the stream adapters are exposed under `share.adapters`.
Add basic tests for stream adapters.