Move flag-related functionality to flags.py.
Rename ArgParser -> Parser.
Replace #-substitution with actual high-entropy random string.