Model redefined

Changed the strucutre of events. The files are now attached to an Event
– and not anymore to a FileEvent. The reason is that it is very likely
that in the future, we will be able to add files to a note.
Code factorization and organization

Factored and organized the code in FileController so that is it eaiser
to read.