added settingsService and working preferredMarket configuration, persisted by ngCookies