Safe browsing notification test

Given that we might also need some other properties from the permissionmanager (https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIPermissionManager), we should have an API module under `/lib/api/`. Maybe we call it permissions.py?