Your current problem sounds like master relay has cold cracked soldered joints. My '91 crx si used to do the same thing until I resoldered all the connections in the master relay.
(if you don't know how to resolder, take the master relay to an electronics repair shop. It shouldn't cost much to resolder all the connections in the master relay.)
_or_
You could just replace your master relay (it's bolted under the dash behind the hood release near the driver's side door hinges)
take care,
ChrisS