base: baseUrl for require.js

* Fixes the base path for require.js module which were loaded from a
  relative path instead of the absolute one.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
Reported-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: templates hierarchy

* Changes the template hierarchy so index.html is more specific than
  collection.html.

* Adds basic documentation to find your way out.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
search: PEP8 and PEP257 fixes

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
records: fix for `test_error_catching`

* Changes unicode test to a simpler one.  (closes #1814)

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>