Add a base Pin class for Analog/PWM pins

Just basic for now, but there's definitely some other patterns in the two pin classes that could be put into a base class.