Adding capability to delete resources via label selector

@smarterclayton, @bgrant0607  @derekwaynecarr Thanks to have a look when you have time
I'm getting very uncomfortable with the length of this embedded function... Also, we should really make the server's delete take a label selector, so this shouldn't be necessary at all eventually. Can you isolate this code in a function and just call it from here?