pass json to exec templates on stdin.

remove code for passing input params as environment variables.