Wifi password lost every time I reboot my phone
Not a solution, but a work-around:

The WiFi password is not stored on /system – it's in /data/misc/wifi/wpa_supplicant.conf. As you're using CyanogenMod, it should be safe to assume you're having root access. So you could use an automation tool (yes, I've got tasker in mind here) to copy that file to a "safe place" whenever shutting down the device, and have it restored from there on each boot.