Fix extracting content-type from response.
Changed the authentication interface.
Refactored authentication approach.
Created Basic and CORS Authentication impls.