[web, lib] [refactor] [ENG-536] move clear query to lib/hooks
Summary: move clear query method to lib hooks.
Test Plan: clear query functionality should work as it did before on web. This clear query wasn't implemented on native.
Reviewers: atul, palys-swm, def-au1t
Reviewed By: palys-swm
Subscribers: ashoat, Adrian, yayabosh
Differential Revision: https://phabricator.ashoat.com/D4058