Addresses issue #104.
Note: only read/write/close methods are defined so far, and class is not exposed (use open() factory function, as usual).