[fix bug 920811] Add external accounts to global privacy control.

Also simplify the privacy field macro.
[fix bug 920655] Export as valid json groups, skills, languages.
Merge pull request #638 from glogiotatidis/920811

[fix bug 920811] Add external accounts to global privacy control.
Merge pull request #639 from glogiotatidis/920655

[fix bug 920655] Export as valid json groups, skills, languages.