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

Matches wiki page nodejs API.
Add test-public-api.
Fixes #915
Also RUNTIME_PATH please :)