Nonce generation changes.

Nonces don't need to be random, only different.

also random_int now gives same quality random numbers for both NaCl and
libsodium.
Merge remote-tracking branch 'upstream/master' into nTox
Save datafile when adding a friend/accepting a friend request.