getPinMode: fetch PWM frequency and value

var x = getPinMode(pin);
* x.pwm.freq = PWM frequency
* x.pwm.value = duty cycle as a value between 0 and 1

Current test just prints the values. Still need to create a regression
test and validate across all pins.