Adding support for repeated URL parameters.

This is a patch from https://github.com/simplegeo/python-oauth2/pull/86
Properly identify the Authorization header's Realm part.
Merge branch 'erik/realm-parsing'