Do not add the timer if nginx is exiting
Use uri from the authorization header
Minor cleanup
Auth response header URI must be the same as the http request URI
Merge pull request #1 from jrkettle/master

nginx will not shutdown with http-auth-digest