WS-1267 Storing and retrieving the previously selected capability from the session
This stores the previously selected capability in the session so the header component can retrieve it. I possibly could've done this with an event-observer or something, so feel free to let me know if there's a more Angular way to do this.