Changed server to use Heroku servers when possible and 3000 otherwise