Moved debug cache onto main thread

UI responsiveness greatly improved
Merge pull request #992 from codecombat/master

Moved debug cache onto main thread