Refactor tests, clean up routes

Refactor acceptance tests to eliminate duplicate logic. Bring routes
for Enrollments and Coursework in line with controller actions.
Minor refactoring on lesson show and index. Move logic out of
assignment show view and into User model.
[Finishes #51579803]