Adding support for row- and result-set- handlers.

This partially addresses issue #10.