Checking in first revision of pulse code

Extracted functions from jee lib and started to remove checks for
anything other than ATtiny, added PCINT interrupt.