Refactor setting of DEVISE_SECRET_KEY and SECRET_KEY_BASE