Reorganize code

The source code was organized as a GOPATH root, but it was a bit
troublesome to work with and import paths we quite inelegant.