Get rid off counter, use set features, add offline

This gets rid off usage of counter variable via use of set difference.
Also adds offlined friends notification.