Combined set of patches for more flexible WebFinger discovery

This pull requests combines my previous pull requests (#19, #20, #21), for convenience.

Thanks for putting this module together.  I'm using it, with these patches applied, for OpenID Connect discovery in my still-in-development [strategy](https://github.com/jaredhanson/passport-openidconnect) for Passport.