generate and use SECRET_KEY_BASE for Rails 4 base
The Rails v4 base application (generated by 'rails new') uses the Rails 4
secrets system, so we need a to set an environment variable,
SECRET_KEY_BASE where the app runs. We generate this if the attribute
is not supplied.