Fix #47

Added additional logic to hashchange event to handle changing tab like
normal if the base url changed or to trigger search if the search query
changed.  mooha.py also passes along search queries in the URL and puts
them directly into the template.
Merge pull request #48 from rhefner1/put-search-in-address-bar

Fix #47