Baby coral and fish can smell the difference between good and bad reefs, say marine ecologists.