add a prepublish script so things work out-of-the-box on npm 1.4.9
- rm obsolete references to lib/