servers.go
func (s *Server) FullConsoleUrl() string {
	if s.ConsoleUrl == "" || s.ConsoleToken == "" {
		return s.ConsoleUrl
	}
	u, err := url.Parse(s.ConsoleUrl)
	if u == nil || err != nil {
		return s.ConsoleUrl
	}
	values := u.Query()
	if values.Get("password") != "" {
		return s.ConsoleUrl
	}
	values.Set("password", s.ConsoleToken)
	u.RawQuery = values.Encode()
	return u.String()
}
func (s *Server) FullConsoleUrl() string {
	if s.ConsoleUrl == "" || s.ConsoleToken == "" {
		return s.ConsoleUrl
	}
	u, err := url.Parse(s.ConsoleUrl)
	if u == nil || err != nil {
		return s.ConsoleUrl
	}
	values := u.Query()
	if values.Get("password") != "" {
		return s.ConsoleUrl
	}
	values.Set("password", s.ConsoleToken)
	u.RawQuery = values.Encode()
	return u.String()
}
// FullConsoleUrl returns the console url for the server with the token in the
// query string.  Server needs a ConsoleUrl and ConsoleToken, retrieved using
// ActivateConsoleForServer