Install dependencies with npm

to ensure the correct versions of all libraries (casper / phantom) are used.
It could also make it easier to script tests, as shown with the `npm test` script.