Add transactions for file insert and update.
Fix setting userid in the session for autologin.
Add file revision tracking.

There is a table of changes shown on the file page, but not yet a page
to show what changed.