Go vet, golint; modify tests according to Golang conventions.

Although this is a breaking change, it's trivial and concerns only methods
renaming. For instance, endpoints.HandleHttp() is now endpoints.HandleHTTP().