copy helper functions from sage-env to sage; backup env to DOT_SAGE
Merge branch 't/16377/back_up_environment_on_sage_startup' into tmp

* t/16377/back_up_environment_on_sage_startup:
  16377: back up env to SAGE_ROOT/.orig-env
Merge branch 'u/rws/back_up_environment_on_sage_startup' of trac.sagemath.org:sage into pb-2

* 'u/rws/back_up_environment_on_sage_startup' of trac.sagemath.org:sage:
  copy helper functions from sage-env to sage; backup env to DOT_SAGE