Make auth factories flexible

Add prefix and responseBuilder options to Basic and OAuth factories to make them more flexible.

Close #798
Merge pull request #802 from Toilal/custom-auth

Make auth factories flexible

Fixes #798