add function to guess a phone's type by user agent + test
change default auth type based on user agent headers