added API function to get online friend count
decrement counter on friend delete
Merge pull request #717 from JFreegman/master

added API function to get online friend count