Code fuzz fixes, sync hardening, and error handling improvements
Harden security, sync, and query subsystems
Initial commit