feat($resource): add a default action 'update' for PUT

PUT method should be used for updating, while POST is used for creating.