More refactoring for reposplit.

The Engine.py included is meant as a quick hack to keep the panda stuff working right now. It will need a lot of work.