Clean up the whitespace in the primary Python / HTML files in order to make it easier to apply changes going forward.
Remove unused imports and some other completely unused code.
This makes it possible to render the search results on the main engine. We still run the query on the seprate search server, so once has to be configured in settings_local.py with the key SEARCH_DSN (standard PostgreSQL/psycopg2 connection string)