UPnP whitespace and tabs

Find and replace all occurrences of tab with 4 spaces.  Trim trailing space from lines.