Initial commit of the new C++ version.

The ruby version is no longer being developed.