Two Weight Commutators on Spaces of Homogeneous Type and Applications