[r21447]ConfigManager: Ensure key files are loaded and saved as utf-8

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21452 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r21448]grampletpane: Use __future__.unicode_literals instead of cuni()

And get rid of the silly NL = "\n"

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21453 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r21449]grampletpane: Replace diagnostic prints with log warnings.

And improve warning when unable to save the Dashboard layout.

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21454 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r21450]Addons: Check for two-letter lang as well as 5-char locale

E.g, check fr as well as fr_FR

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21455 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r21451]GrampsLocale: Remove all calls to locale.setlocale and locale.bindtextdomain

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21456 4ae1f11a-8b86-4847-b8af-ab372f36d1fd