[feature/session-storage] Move interface functions

Moved interface functions so that they center around
the sql table that they represent. This makes writing
underlying storage easier because the kinds of actions
that you would perform on that data are all under the
same interface.

PHPBB3-9733