golint/gofmt the code

Used Go 1.4's gofmt and golint but should be compatible with anything >= Go 1.0.

Also using `stderr` for XMPP message dumping in debug mode, which is in line with Go's standard logger (`log.Println` etc.). This makes piping message output to another command easy without mixing XMPP chat logs.