Psgi errors

Re: http://play-perl.org/quest/5130de7c20d03fb710000071

You asked for pull requests, so now you got it :smiley:

I am still not sure when (and if?) to clear out the psgienv stuff from the logger at the end of the request, since you can't really use it between requests I think (in the PSGI sense that time doesn't really exist?)