Expose more mid-level API methods.

Refactoring FFI integrations.
More specs.