Lots of changes, see extended description

Lots of cleanup, encrypted data structures carry around "is encrypted"
flag (mainly to keep tags seperate), added MAX_NUMBER_OF_QUESTIONS for
quiz/exam generation, Moved DB reset/populate functionality into main
program when running in DEBUG mode (db_reset.py)