Make endpoint and helpers available in auth blocks

These updates make the endpoint instance the context (or "self") for auth blocks such as Basic Authentication and Digest Authentication. It also extends the instance earlier to make helper methods available to Rack middleware. This allows us to authenticate and store info related to authentication as part of the request (e.g. instance variables or environment variables).