Adding karma for testing, and imageoptimizer, to package.json.