The goo is silicone compound. Earlier ones had some sort of black crap in them.
Circuitry like that is said to be "potted". It's used to protect the circuitry from water, moisture and tampering. That "black crap" was tar. Over the years many different types of potting compounds have been developed. The usual one today is a two part epoxy.
-Hal