Simplify search parameter passing across screen transitions.

* Add the search parameters to the new URL in one place only, router.js->navigate.
* Remove the searchParam passing in other locations.
* Add a mocha test for router.js