Factory Data Reset...
Settings > Privacy > Factory Data Reset
This will put your X back to it's "out of the box" status. Your paid downloaded apps will be available afterwards from Market and won't take too long to dl and install. The free ones, you will have to dl yourself, so make a list of them ahead of time.
Also, when you re-install apps, consider that there may have been a conflict between apps and/or your X. Load your more recent dl apps LAST, so you can determine if one of them caused your problem. If you do, then uninstall it and move on.
PS - You might consider plugging your X into your PC in USB Mass Storage Mode and drag/drop all the SD card contents to a folder on your PC. This will be a backup, if needed later.
Congrats on your no-smoking campaign. Worth the effort!