CookieManager is deprecated now

Have not removed CookieManager code yet, but replaced cookie manager
calls from the code.
Hereafter we should use localStorageManager as replacement of
cookieManager.