Splitted the search term and query agains files and directories

Also added a delay befor sending requests, to avoid a lot of requests
caused by fast typers (tnc-ba/strongTNC#28)