mozilla/openbadges — pull request #417 by stenington (2012-10-19 15:31:57+00:00)
Title: Integrate 12factor

This pull cherry-picks a bunch of work from davelester:feature/12factor to make the backpack pull its config from the environment instead of config files, thereby obeying the 12-factor app principle 3. Tweaks needed by Heroku will come later.

`configuration.js` becomes a thin wrapper over `habitat` to pull config from the environment. It might go away in a later commit, but I think there's a case for keeping it in the next pull that makes the backpack mostly Heroku-able.

The `lib/environment` files go away, and `.puppet-manifests/files/env.sh` contains almost all the necessary config to set up the ENV variables on the VM and for travis testing. `OPENBADGES_BASE` needs to be set first to provide the base path for the `badge_path` and `var_path` config elements.

@davelester, does this look right to you? @brianloveswords might want to give this a look too.