Invite: proper event register
Fix accept invites from battle.net friends (API function has changed)
Code reorganization