Centralised session management better into sessionService.js, so the local user object can easily be retrieved from that service