Lots of changes:
- Change the behaviour of uploading full CPD records by saving them as activities with 0 as category ID, and reuse the behaviour of standard activities, instead of previous behaviour of figuring this out from scanning directory. This was needed in order to save hours with such records.
- Change the behaviour of getTotalCredits to retrieve credits from DB instead of incrementing it like before.
- Various improvements, refactoring and bug fixes