(maint) Add dynamic load for previous queries

Prior to this commit, there was no way to redo the queries you've
already done. This commit changes that by adding all of the previous
queries saved in a cookie to a list, so a user can click on one of them
and redo them.

BUG: This works fine until someone types their own stuff into the query
box, then the dynamic load for some reason does not clear out the
textbox. Needs fixing...