* Support headers and footers.
* Converted script to use coffee script.
* Replace [pageNum] and [numPages] in headers and footers.
* Read headers and footers from files.