added exec(cmd,output,input,avpenv) function for exec module

This will stall if there is lots of output before the input is needed.

Pipes won't buffer an unlimited amount of data, and I doube that FILE streams will either.