Added membership checks.

PR for https://github.com/kohsuke/github-api/issues/23