Refactor student and student_membership model

Minor things related to Rails 4 and style cleanup.
Space inside { missing.