This moves various components of internal/renderer into separate files in the package, and adds doc.go for godoc.