First draft of listfile support.

The .listfile pragma and the -l command line option will select the
output file for the listing.