Move shared library to it's own folder and add Makefile
Bring the library and helper functions into the PulseCounter module.