Adding tests

Adds preliminary test coverage via a small mocha suite. Try it out with `npm test`. It works by mocking a webpack loader and ensuring that the proper resources are requested in different scenarios.

Also cleans up the package.json a bit.