search: change in templates inheritance schema

* Makes index_base.html and results_base.html
  inherit from searchbar_frame.html instead of
  page base.html to share the search-bar.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
search: search bar adaptation to typeahead 0.10

* Makes the parser configurable.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
search: browse.html inheritance changed

* Inherits searchbar_frame.html to get shared
  searchbar code.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
formatter: TypeError fix in record template

* Fixes "TypeError: %d format: a number is
  required, not dict" in function
  render_record_footer in
  Default_HTML_brief_macros.tpl.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: code clean-up, comments, documentation

* Improves code organization in
  helpers_base.html.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: fix for browse button

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>