Move djangoq settings to base settings
Done to make djangoq settings accessible in production. The sync setting is changed to the default False value since the run order of the tasks is not relevant for our use case. Mail sending functions have gotten a sync argument to force the tasks to complete before checking their consequences in tests.