Big update. Most important changes: prepared for use of r4's entity system. Created a physics system.