(maint) Save queries in cookie

Prior to this commit, I was not saving queries that users entered
in. This commit changes that by saving the version/enpoint along with
the given query and does not save duplicates. This will be helpful
in the future when I auto-load previous queries in the textbox as
users type in queries.