EMI: Implement setting actor sort order based on sector sort planes

This commit makes it so that all the background pieces render in front of the actors when they should, and behind when they should. The only thing I'm not happy with is that it is run every frame, but I'm not sure if there are situations later on where this may be required.