Fix $_SERVER['SERVER_NAME'] and $_SERVER['PORT']

Those php variables were returning "localhost" and the env heroku variable $PORT, so plugins using them to build URLs were not working. Those two lines fix the problem.