backport from herring.  Added capture()
backport from herring.  Added backtrace for exception messages.
added Project::update to regen files from templates