HUE-1187 [beeswax] Trash for queries

Queries can be bulk deleted and restored.
Added tests.
Clean up a bit Oozie trashes