nTox: Save data on friend operations/exit

Currently nTox never saves its state, only loads it. Makes it a bit... inconvenient to set one's name and friends over and over. :D