Updating to current vesion as of 6/2/2013.

This is not fully tested and may have bugs.  It does compile and is much more up-to-date than the current repo version.

Specifically, I have found some strange anomalies that come out of the blue tooth debugging process.