Can a relative or a friend become ordained through the internet and officiate our marriage?

Yes, any ordained or licensed member of the clergy may officiate your marriage.  Also, any CT Justice of the Peace may officiate your marriage in the State of Connecticut.