Split settings module into dev/prod environments

Using the so-called "One True Way" -- local.py contains local development
settings, production.py contains production settings code (for Heroku), and
base.py holds whatever's common to both and sets some defaults.