examples: Factor out auth-info loading and arg checking.  Add download-file.php example.