Delete useless import
Allow overriding session class
Include mock in development requirements
Delete dead code