Extract functions to list expected/found database indexes from check_indexes
so they may be used from other contexts.
Use consistent naming along the way: always use indexes, not indices.
.. _session_module:
:mod:`cubicweb.pyramid.session`
-------------------------------
.. automodule:: cubicweb.pyramid.session
.. autofunction:: includeme
.. autofunction:: CWSessionFactory