Add support for global filters, with unit tests. Bump to version 1.4.0