Added callbacks on generate

I added a method to run callbacks both before and after generation of each individual type of generated file as well as before all are run.

The syntax is specifying the command in the config file. For instance:

    before_all: cp -Rf source/* content/
    before_pdf: scripts/strip_demo.rb
    after_all: echo "DONE"