Added /whoami and integration test for authorization.

Added new endpoint /whoami for debugging authentication.
Added integration test which checks that a user is authenticated
using token authentication.
Rearranged initialization of authenticator to support preceeding.

Knowing whether an authenticator was successfully used is a debugging
feature.
On Oct 27, 2014 6:13 PM, "Clayton Coleman" <notifications@github.com> wrote:

> In pkg/master/master.go:
>
> >  	}
> > +	m.mux.HandleFunc("/whoami", handleWhoAmI(authenticator))
>
> Possibly should only be installed it an authenticator is used.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/2016/files#r19448596>
> .
>