ensure top level req before processing query

https://github.com/duckduckgo/p5-app-duckpan/issues/17
Merge pull request #23 from duckduckgo/dylan/duplicate-req-process-fix

ensure top level req before processing query
function naming changed to reflect the actual functionality
Added comments for better understanding of the flow
Merge branch 'master' of github.com:duckduckgo/p5-app-duckpan