add API to attach payloads to assignments
add a getter for the number of bytes in the payload
cleanup check for attached socket
Merge pull request #947 from birarda/master

add API to attach payloads to assignments