Added Scarlet for API Statistic logging. Resulting in a massive tidy up and proper separation between concerns.