No need to generate.py: handle everything in the main script.

Also be smarter about temp space on Grid nodes.
Use local paths
Don't use mask script
more flexible parameter expansion
Read input globs from command line
WiP on Grid RSM script
Basic setup for Grid run