fixed a typo
refactored auth functionality
update functionality for auth
added _setHttpAdapter functionality
updated some tests