Reef ecosystems face both local and global threats. Here is what needs to be done to ensure the world’s corals and mangroves are preserved.