Save query in resultTab

Added functionality for saving query as JSON in the
result-area/query-tab. It is necessary to place the button there because
in the other tab the user is able to change the query before/while
saving.