PR: Clear searchbar when switching back to Viewer.

Added a $routeChangeStart handle to the AppController which checks if we're to go back to the Viewer then it clears the searchbar and also clears the search query from localstorage

A solution for #643