Lazily generated SharedPref editor context field

This code changes eager field generation to lazy, so the context field
in SharedPref Editor classes is only generated if needed.
Fully lazy generate context field for SharedPref
Merge pull request #1031 from WonderCsabo/1030_lazyPrefEditorContextField

Lazily generated SharedPref editor context field