Cleans up bower.json and package.json.