Apply a giant code cleanup.

Essentially:

- Remove unused code.

- Make it 'go vet' clean. The only remaining warnings are in generated code.

- Make it 'golint' clean. The only remaining warnings are in gerenated code.

- Smoothed out same minor things.

@juliusv  Despite the huge delta of this PR, it should be very straightforward.
265d would be a short year :)

s/265/365/