Making compost is a cornerstone of sustainable gardening, yet few of us understand the great science behind it.