[SD-851] Refactored preferences service to load after session is loaded.
[SD-851] Refactored preferences service to reload when local storage is empty.
[SD-851] Removed console logs.
Fixed the unit tests and the styles