Case-insensitive authentication scheme

Authentication token is converted to lowercase to fix errors for some servers like those using python twisted. According to rfc 2617 this token should be case-insensitive.