We should match the CSPs by domain, otherwise we risk having problems when dealing with CSPs with the same name
Added support for handling the reference date
Reorganized the code so that it works at a "domain level" instead of a "csp level". This is required in order to prevent problems with ISPs having the same name