Convert the relay code to a C++ class.
A few billion code changes to various classes to support things.
A few million memory leaks introduced as well. clean up later.
Remove all the old .C files, well most of them anyway.