Remove a bunch of commented code from main.cpp.
Add a destructor to packet class to, hopefully, resolve some memory leaks.
Fixup some potential memory leaks in relay class.
Fix a few more memory leaks.