Created structures for API session management

- added table to store sessions
- added repo to manage session