Refactor student and student_membership model

Minor things related to Rails 4 and style cleanup.
Redundant `self` detected.