Update ERXWOContext.relativeURLWithRequestHandlerKey to eliminate
possible corner case where app extension is part of the domain or app
name. Also check to see if the port is in the url already before
replacing.