Basic interface.

The basic interface is almost complete with the notable exception of
reply arrays.

Binding of a few basic functions feels ok for the moment. Some interface
changes will be likely with functions that return different reply types.