Re-format code to be consistent

gofmt -w *.go

Reading the source code was making my head hurt, with the mixture of tabs and space indentation, and inconsistent space indentation widths.  So I ran it through gofmt.