Fixed unmodifiable behaviour of FlatEvent
[db,commons] added a method to convert ODocument in IODocuments when
executing a query.
[db,commons] document query.
[events] methods to the query manager to count events and browse events