Persist sidebar visibility between page reloads.

Used the ngCookies module of angular to store the variable in a cookie.
Replaced the usage of EventService with a SharedSettings service.