Updated to move more code into libs, and use the GOPATH.