Rewriting the battle loop;Fixing layer access bugs

Changing the fundamental timing model for combat. This should make it easier to implement future features:
* skills that affect combat timing.
* making space in combat timing for visual fx.