This may just be me, but the first thing I'd do is put a load on the battery, and check the voltage.
Everything you described (motor won't open the gate, but the relays 'click'), would indicate a low battery.
Something may be broken, but I'd do the battery check before I tore into the circuitry...