Move manager to it's own package so it can import db. Move all references to the in memory session repos to use sqlite3.
Adjust logic and remove panics from functional tests.