URI processing code moved to a separate function.

This allows to reuse it in the upcoming SPDY module.


git-svn-id: svn://svn.nginx.org/nginx/trunk@5120 73f98a42-aea0-e011-b76d-00259023448c