update angular-resource to 1.3.1