More sync work

Fix a problem where states overwrite local commands

Simplify the main loop
Clear out sectors and thinkers before loading a state

Only build a new state delta for a client if they're behind
Remove old P_ClearSectors misfire
Fixed performance problem when saving states
Update TODO.md