cleaned up implementation

This library follows the go-wiki code now. All the C is in one file and
all the Go is in another, much better.