Major reorganization. No more crashes. Ready for Raspberry Pi.