Create function zsock_sendmem

Helper method to ease sending a chunk of memory with a zsock.
Merge pull request #580 from ahhentz/new_features

Create function zsock_sendmem