lithium polymer battery connections
The black wires are connected to a thermistor on the end of each. The white goop is heatsink compound. They are used to monitor the temperature of the cells in order to provide a thermal mechanism for detecting full charge as well as part of a safety mechanism to prevent the cells from igniting.