Expose Handle and Stream base classes

Fixes #161