Feedback in Clouds II: UV photoionization and the first supernova in a massive cloud