Added support for handling the reference date
We should address CSPs by domain, otherwise we risk having problems when dealing with CSPs with the same name
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