Added exec directive with both cmd and cgi support. Added tests for cgi directives