Relay?

I have a 99 Jeep Cherokee Limited. Here are my symptoms; Sometimes all of my dashboard functions fail, CD player, windows, heat, etc will all shut down. I can play with the automatic lock button and get them to work again only to have to lose all functions all together sooner or later. I haved learned through trial and error that I can take all of the fuses out of 'socket' and put them back in right away and everything works perfectly. 90 percent of the time I hear a clicky noise directly under the passenger side automatic lock, like some kind of switch. I also have replaced my passenger brake light several times over the last year but don't know if that is related. Any suggestion? Here is what has been supposidly ruled out so far: ignition switch, fuses, battery, connections. Thanks!