added support for varnish 4 and auth via secret key