add a prepublish script for publishing to npm repos
- rm obsolete references to lib/