Stub generation for function bindings

Fixes #15.  More details to follow.