Discovery should honor top level methods.

Clients are only creating helpers for the the methods that belong to a
resource, we should consider the methods that doesn't belong to one
as a top level method.
Testing request replays on auth failures for OAuth 2 client.
Merge commit '3a421bb16fa5669c3578f7db8ada208d0ad75c7f'

# By Burcu Dogan
# Via Burcu Dogan
* commit '3a421bb16fa5669c3578f7db8ada208d0ad75c7f':
  Testing request replays on auth failures for OAuth 2 client.
  Discovery should honor top level methods.