support for url rewriting the proxied urls

implements #8