Authenticated request handling and ModernHttpClient support

Add a built-in way of doing authenticated requests with tokens and also enable use of ModernHttpClient