Consolidate settings: try heroku first, fall back to localhost

This change no longer requires editing settings.py before deploying to
heroku.