[feature/session-storage] Refactor sessions to abstract storage mechanism

PHPBB3-9733