Make it testable

make django-json-dbindex testable along with a postgresql database:

* setup.py now requires ``psycopg2``
* amended documentation about testing the application (requirements and settings),
* allow to have a ``settings_local.py`` in the demo project to run tests.