First commit of SmartConsent code. Code unstable because I am almost at the memory limit.
Merge https://github.com/adamclayman/smartconsent