Added abstraction layer for frames, in order to fix domain-based rules, whitelisting and the ad counter on Safari.

--HG--
extra : rebase_source : 180f7b70dbeb209f95364d015403c1bf05707e9c