Add cleanup script

Reads from stdin, writes to stdout.