add angular-resource and update package.json