some collectiondir fixes (#1024)
This isn't a full pass, just fixing some known issues:
- process wasn't shutting down with Ctrl-C because of a WaitGroup. fixed
the bug, but didn't clean up the (many) channels+goroutines
- many API response errors were strings, not the expected XRPC JSON
message format
- README didn't describe the actual API endpoint