compatibility with haystack 2.1.0
use RequestSite instead of Site object to build absolute urls
introduce DOCVIEWER_HAYSTACK_CONNECTION to define which haystack connection to use