Improve HTTP authentication * Emit more meaningful error log message for unknown/missing HTTP content-type header. * Fix double encoding of query params in authentication HTTP requests. * Emit meaningful error message if POST method and JSON content type are configured for authentication HTTP request but JSON template cannot be rendered into a valid JSON. E.g. when a template contains `${password}` placeholder, but a client passed non-utf8 password.