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.