Invite friends

Newsletter dialog refactored into popup dialog to allow reuse for the
invite dialog.