Fixes and improvements to client/server sync. This has a ton of debugging in it right now, which will stay until I stop encountering more problems.