Made parsing Authorization scheme and "realm" parameter case-insensitive

Fixes #668