Add support use authorization middleware with function as backend.
Add support use authorization middleware with function as backend.

That automatically wrapps it in a generic backend instance.

jgregors/buddy-auth,rwilson/buddy-auth,funcool/buddy-auth,shrayasr/buddy-auth