refactor env vars

Create separate SrConfig subclass for keys and settings
in environment.
minor doc work
Merge remote-tracking branch 'origin/master' into editdocs