Make shell_package support both stdin and stdout

This modification takes the logic from shell_load_package that allows ExternalFilter processes to read data in from stdin from Vertica and emit it back out via stdout to Vertica, and re-uses it to let shell_package do the same thing.

Now you can pass rows into your program, and read its result back out.