ChatForm unification

Common parts of ChatForm and GroupChatForm classes merged into the parent class (GenericChatForm)

PS: only now I realized that something similar was already done in newChatForm branch, but anyway chatforms should be reimplemented.