Linking membrane dynamics and trafficking to autophagy and the unfolded protein response