Add buffer for file events (allowing to add a file tree)

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>