Pin.readPulse() functionality

Basically does exactly what the title says. It implements readPulse functionality.

Check out `test/test_read_pulse.js` and mess around with the test to see if it's all good.

Comment/critique to your hearts desire.
This performs integer division and loses sub-ms resolution. Use `((double)pulse_ticks)/SYSTEM_CORE_CLOCK_MS_F`.