Current v2 auth API doesn't propagate its error code. This commit adds utility functions for parsing error messages and getting detail of v2 auth errors. Fixes https://github.com/coreos/etcd/issues/5894
This can be used to check if an error is client.ErrorCodeKeyNotFound. Related to https://github.com/coreos/etcd/issues/4080.