Client should validate the incoming host value

Convert host:port and URLs passed to client.New() into the proper values, and return an error if the value is invalid.  Change CLI to return an error if -master is invalid.  Remove Client.rawRequest which was not referenced, and fix the involved tests.

Preserves the behavior of the client to not auth when a non-https URL is passed (although in the future this should be corrected).
Yeah, will do

> On Aug 27, 2014, at 11:48 PM, Daniel Smith <notifications@github.com> wrote:
> 
> In plugin/pkg/scheduler/factory/factory_test.go:
> 
> > @@ -37,7 +37,11 @@ func TestCreate(t *testing.T) {
> >  		T:            t,
> >  	}
> >  	server := httptest.NewServer(&handler)
> > -	factory := ConfigFactory{client.New(server.URL, nil)}
> Can you add a NewOrDie? I don't think we need to test httptest's URLs everywhere. :)
> 
> —
> Reply to this email directly or view it on GitHub.