Use flask-utils for JSON serialisation.
Fix some explicit calls to as_dict()
Port updated normalisation and similarity code from ODIS.
remove import.
Leftovers be gone.
Import query_pager from ODIS, soon to replace proper pager(tm).
pagination directive.
Apply pagination directive to home page - not sure this is clever.