Added initial_pin_state support and AD595 thermocouple support

The client will now restore initial pin state on boot.