Code style fix.
Implement front-facing stream interface.
Implement peer_id functions.
Add missing base_stream include.