Allow to specify secret token via SECRET_KEY_BASE environment variable.

Another important setting that should be configurable via an environment variable. Related to #6716.