Allow filtering of notifications

Fix for issue #7.