Feature/reversing distribution

Reversing distribution to patient and to service
`connect.basicPut()` is deprecated and will be deleted soon.  Please use `connect.post()` here, and in the future.