Added support to invite friends to a group

(right mouse click on a friend)
Different exception type
Moved all of the document tools to a separate class