Moved layout handling into a manager so we can access it from multiple threads.  Formalized the managers in the scene.