Second part of servenv rework.

lameduckMode flag is not local (not used anywhere else).
Allowing default flags and non-default flags to be used.
Always using default flags in our applications.
Merge branch 'master' into replication