rearange for building outside of cloud
setting the bus speed on spark has no effect - see https://github.com/spark/core-firmware/blob/master/src/spark_wiring_i2c.cpp "I2C_InitStructure.I2C_ClockSpeed = 100000;"
simple little library to count pulses from an analog value - requires at least a change of hysteresis in one direction before it changes and then it has to change back.  hysteresis much be greater than noise
don't loop forever waiting on data that will never come - this was a hack I figured I might use, but I dont - beware
make the comment reflect reality a bit better
simplify the return on error path
this has really changed to its own thing with very little of the original code remaining
remove most of the debugging blinkin lights.  change to compile locally for ic2 fix (add application.h).  start using flipfop lib to count changes