In order to facilitate frequent and unimpeded contact between children and parents, a judge may consolidate with a support action or proceeding any proceeding commenced for visitation rights, sole or shared custody, temporary or permanent custody or any other matters pertaining to support authorized by law which fairly and expeditiously may be determined and disposed of in the support action or proceeding.