Homological algebra and rationality of varieties