Dynamic form loading and PDF producing stuff.

Hopefully I'm not about to overwrite all of somebody's changes here...