Add new event - BeforeAdd, that will be triggered for each file added to the queue.

It can be used as a filter for example, since if the handler returns
false, file will not be added to the queue.
Tests: Adapt tests to new 'filters' format.