Move the dependency installation to a separate target

Having each target depend on the tools it needs is neat, but grows unweildy.
Add phantomjs-mocha driven tests
Remove /public/data from the top level .gitignore

It doesn't exist anymore
Use lib/lib.js in index.html