Merge pull request #12 from anacrolix/master

UTPConn.Write returns before the given buffer is used, so copy it
Listener: Use c.rid instead of sid
Workaround occasional nil pointer crash
Workaround occasional stall when closing connection