Converted SendMsg and Pack to templates
This included moving them to Connection.h and making sure they still work
with char*, still haven't tested this with other structs though. They
still don't work when converting a string to char* however.