Moved shared code to separate file.
Moved function to ring_queue.h/cpp
Merge branch 'master' of github.com:chasecaleb/rfduino_distributed_sampling