Replaced cgi specific code with Plack::Request code