Fix thread issues with AppRegistry. NOTE: Still have process issues.
Temporary save on the way to a possible solution for django not being setup in sub processes.