chore(template_cache_generator): move optional args to flags

Moved to ArgsParser to parse command-line arguments to template_cache_generator.
Made several arguments optional with reasonable defaults.
Documented params in usage.
Support writing to stdout.