Added some more teams permission checks

I implement these for working on the TED api, but I'm not sure if we
will use them or not.  In any case, they might be helpful for the
future.
Send notifications to teams in more instances

This code is really annoying, I really want to refactor how it works.
See 2524.
Updating integration repo
Include language id in HTTP pings.