EDD_Payments_Query Refactor

See #1446

I still seem to have the bulk delete issue.