Merge pull request #946 from birarda/assignment

improvments to assignment flow
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
make the assignment targets subclasses of Assignment for access to UUID
repairs to subclasses of assignment