Add join, invite, send, oninvite, onchat, view optimization and remove test class