first pass at making Catalyst act enough like PSGI middleware to be broadly compatible
more plack compat
fixed silly warning (bokutin++)
updated changes