Reformat codebase using Jindent tool

Convert tabs to 4 spaces, clean up white space, wrap lines to 100
characters, indent as consistently as practical
I didn't notice until after I merged it that the UPnP changes do this too.