Pulses check_maybe_do(); setup_pulse(); set_new_period();

Pulses library basics done, *completely untested*

Defer testing, will add some fun things first,
instead of debugging code ;)
...