Add logging to saveQuery
Fix: UI hanging when saving query.

Clone query object, before modifying/sending over the wire.