Use argparse for command line parsing.

Also, add two new options to support different HTML headers and footers.