Adds a "callback" parameter to Socket::send

I've found myself needing confirmation that Socket::send has been called. This patch would invoke a callback once the value is written.