Pass boolean value for mailSyncEnabled to Core

- Remove references of userState and uiStatusManager on window object as
we are nearing production

Fix for https://github.com/Rise-Vision/common-header/issues/259