Added functions to add/remove friends in onion_client.

Added a tiny optimization to net_crypto.