for testing purposes.
SimulationThread instead of (obsolete) own loop.
Django setup with threading added.