Pi delete with root

Returns BadRequest 400 when invalid request is sent.

Optionally allows root element to be present in request data.

https://github.com/aeolusproject/imagefactory/issues/274