Add config encryption lib, encrypt config, add config edit mode