Refactor {plume,trill}_tls_send

This code remains untested.