Move pw handling into User class. Implement assocation UserLesson
Fix migration syntax errors.