Fix downloading result from very long user query

We were still passing queries as GET parameters in links on the query
result page, leading to bug when exporting, creating a view or creating a
report.
We now use the sessoin variable 'sqlquery' as anywhere else.
Fix creating report from user query result in plugin Report

Same story than in previous commit 3ec985e, but for plugin Report.