Strip newline from Authorization string

Newline at end of auth string causes HTTP 500 when calling other API methods besides /initClient.

'User-agent' with lower-case 'a' causes Typhoeus to insert its own user agent string in front of the one being set.