Make Revision Number available in file list.

Hi,
These changes make the current revision number of a document available in the file list (to out.tpl).   I am going to use this on my system, and thought you might be interested.   The 'catcote' theme uses this.
I also want to have a 'Document Number' field shown in the list.   I am still wondering whether to use a UDF or change the database structure to include this field - I haven't quite worked out how UDFs work yet though.