Added wrappers around popen() and pclose(). Added tests for same.

Change-Id: I3b311c4a49eed8211e7b7e65f7aeca9358409e39
Signed-off-by: Scott Mann <smann@noironetworks.com>