Scala styling improvements
Fixed URI rewrite logic: no longer calling super rewriteURI in order to gain full control over validation and destination resolution.