Move methods to proper place
Update selectFriend: to work with group chats
Try to fix some bugs.
Fix notifications on OS X < 10.8.
Add a notification for group invites.