Lesson creation - backend, part 3. TimeOut message added.

Lesson creation now works correctly for all users, with form input
correctly stored in the database.
Additionally, there is now a message displayed when a session is ended
due to timeout (currently 20 mins + 10 second refresh) so the user
knows what has happened.