request query and save the result under query_name folder

During writing result files, the folder name is set by the query

e.g. query = "lg g2", the result path = "dumps/lg_g2"
     query = "#moto x" the result path = "_sharp_moto_x"

Also, max_id.txt and last_created_at.txt are saved under the
query_name path