Added models, refactored sessions controller