Create public API with one function and bump version to 1.0.

Matches wiki page nodejs API.
Add test-public-api.
Fixes #915
Is this an internal error? It looks like it is an invalid caller to write.