Lesson index correctly filters by course
Made api endpoints more robust

* Error messages now provided if resources not found
* Lessons endpoints now enforce that course id matches
* Added seeds.rb to seed the database
* Added non null constraints on course and lesson fields