update multi-tennant code to derive tennant from HTTP_X_FORWARDED_HOST instead of HTTP_HOST due to production environment using apache2 to proxy to nginx (to run differnet versions of php on the server)