New apilib, tools.listevents for querying the api for files

./tools.py server.conf listevents fileid
(replace eventid with an fileid from the db)