lml/ost#345: Handle JP's review comments.

- Use local variable in view/controller instead of helper.
- Separate exercise section rendering for instructor and
  student roles.
- Remove memoist gem.
- Remove url partial and inline using `exercise.url`