Massachusetts is helping to transform cranberry bogs into habitats that broaden conservation and climate change resilience.