When deleting materials, if it is linked to a lesson plan, destroy that relationship also.
Merge branch 'lessonbin' of github.com:fuzzie360/coursemology.org into lessonbin