Lessons - basic tutor and parent views implemented

Basic views for the lessons included for parents and tutors. This will
even work in the case of parents having multiple students enrolled.
Added necessary backend support to lessons library and admin_sql.
Also fixed admin_subjects to work with a change in the SQL schema.