Use updated payloads from GitHub

You get an environment and a ref at the root of the payload in webhooks now. Start taking advantage of them.