Adding a secured (Digest) area to the test HTTP server

This intends to prepare for Digest implementation in Guzzle, to prevent regressing from the cURL implementation. 
Can you move this to a separate function that creates the digest handler?