Add .idea_modules/ to .gitignore .
Engine rewritten for future multiverse support.

This code needs refactoring and testing now.