Deleted query new/edit forms and corresponding partials/helper methods.

Removed the majority of the old queries controller/view code.