Add special handling for terminal commands

CLI overrides TERM and sets it to printf to 
capture the command and run it in the primary
shell.
Add SUBMAKE and rename build tmpl vars

SUBMAKE is needed to preserve -f option.
Remove environments from Makefile

CLI always passes in environment tags which can
now be arbitrary strings.
Update install script