Implement host and port processing in DicomExportService; include XSS improvements from Util