Updated pdfgen script to user a separate configuration file to make switching between systems easier.
Updated RevisionsController to update correctly when document checked out, and limit who can cancel a check-out to the owner or an admin.
Got pdf and extras handling working - needs some tidying up and checking file types to be added.