POC-11: Added analytics support.
Also the two defaults domain settings are now written to the correct namespace.