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

Matches wiki page nodejs API.
Add test-public-api.
Fixes #915
Can we use mocha/chai instead of another make rule?