reset port in URI builder if request is forwarded from default port, added support for X-Forwarded-Port header