Emerging functions of the unfolded protein response in immunity