add support for phedex deletions

The new copy-delete subscription mode will require wmagent to make deletion request, add the neccessary code to do so.

This is just a verbatim copy of the code that Diego implemented a year ago, it worked then. I will add a unit test later as when I implement the copy-delete subscription mode, only then will I know in what context this is going to be used.