Make nTox show your message in the window after you send it.

These to commits add:
* A function to get the name of our own client, replacing the getname function
* A new function: getfriendname to replace the old getname
* Refactors so that the testing clients compile with the new changes to core
* And what the title says :)

I hope these core changes don't break anything important(I don't think so).