[Azoth Sarin] Added util header.
[Azoth Sarin] Use GetFriendId() in MessagesManager.
[Azoth Sarin] Use GetFriendId() in ToxThread on friend removal.
[Azoth Sarin] ToxAccount::SetTypingState().
[Azoth Sarin] Code style fix.
[Azoth Sarin] Actually emit the typing state.