added queryString method to get last query string

as we have discussed in twitter about this method, here is the commit to add the function, feel free to modify it as you see fit ^^

Thank you @pmjones